Home | History | Annotate | Download | only in ARM
      1 ; RUN: llc < %s -mtriple=armv7-apple-ios -arm-atomic-cfg-tidy=0 | FileCheck %s -check-prefix=IOS
      2 ; RUN: llc < %s -mtriple=armv7k-apple-ios -arm-atomic-cfg-tidy=0 | FileCheck %s -check-prefix=IOS
      3 ; RUN: llc < %s -mtriple=armv7k-apple-watchos -arm-atomic-cfg-tidy=0 | FileCheck %s -check-prefix=WATCHOS
      4 
      5 declare void @func()
      6 
      7 declare i32 @__gxx_personality_sj0(...)
      8 
      9 define void @test0() personality i8* bitcast (i32 (...)* @__gxx_personality_sj0 to i8*) {
     10 entry:
     11   invoke void @func()
     12     to label %cont unwind label %lpad
     13 
     14 cont:
     15   ret void
     16 
     17 lpad:
     18   %exn = landingpad { i8*, i32 }
     19            cleanup
     20   resume { i8*, i32 } %exn
     21 }
     22 
     23 ; IOS: __Unwind_SjLj_Resume
     24 ; WATCHOS: __Unwind_Resume
     25