xref: /llvm-project/llvm/test/CodeGen/ARM/eh-resume.ll (revision bed1c7f061aa12417aa081e334afdba45767b938)
1; RUN: llc < %s -mtriple=armv7-apple-ios -arm-atomic-cfg-tidy=0 | FileCheck %s -check-prefix=IOS
2; RUN: llc < %s -mtriple=armv7-apple-watchos -arm-atomic-cfg-tidy=0 | FileCheck %s -check-prefix=IOS
3; RUN: llc < %s -mtriple=armv7k-apple-ios -arm-atomic-cfg-tidy=0 | FileCheck %s -check-prefix=WATCHABI
4; RUN: llc < %s -mtriple=armv7k-apple-watchos -arm-atomic-cfg-tidy=0 | FileCheck %s -check-prefix=WATCHABI
5; RUN: llc < %s -mtriple=armv7-none-gnueabihf -arm-atomic-cfg-tidy=0 | FileCheck %s -check-prefix=EABI
6; RUN: llc < %s -mtriple=armv7-none-none -arm-atomic-cfg-tidy=0 | FileCheck %s -check-prefix=ABI
7
8declare void @func()
9
10declare i32 @__gxx_personality_sj0(...)
11
12define void @test0() personality ptr @__gxx_personality_sj0 {
13entry:
14  invoke void @func()
15    to label %cont unwind label %lpad
16
17cont:
18  ret void
19
20lpad:
21  %exn = landingpad { ptr, i32 }
22           cleanup
23  resume { ptr, i32 } %exn
24}
25
26; IOS: __Unwind_SjLj_Resume
27; WATCHABI: __Unwind_Resume
28; EABI: __cxa_end_cleanup
29; ABI: _Unwind_Resume
30