[WebAssembly] Reverse the order of operands for br_if
[oota-llvm.git] / test / CodeGen / ARM / eh-resume-darwin.ll
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-watchos -arm-atomic-cfg-tidy=0 | FileCheck %s -check-prefix=WATCHOS
3
4 declare void @func()
5
6 declare i32 @__gxx_personality_sj0(...)
7
8 define void @test0() personality i8* bitcast (i32 (...)* @__gxx_personality_sj0 to i8*) {
9 entry:
10   invoke void @func()
11     to label %cont unwind label %lpad
12
13 cont:
14   ret void
15
16 lpad:
17   %exn = landingpad { i8*, i32 }
18            cleanup
19   resume { i8*, i32 } %exn
20 }
21
22 ; IOS: __Unwind_SjLj_Resume
23 ; WATCHOS: __Unwind_Resume