1 ; RUN: llc < %s -verify-machineinstrs -mtriple=s390x-linux-gnu | FileCheck -check-prefix=CHECK-FUNC %s
2 ; RUN: llc < %s -verify-machineinstrs -mtriple=s390x-linux-gnu | FileCheck -check-prefix=CHECK-ET %s
3 ; RUN: llc < %s -verify-machineinstrs -mtriple=s390x-linux-gnu -relocation-model=pic | FileCheck -check-prefix=CHECK-REF %s
5 declare i32 @__gxx_personality_v0(...)
9 define i64 @foo(i64 %lhs, i64 %rhs) personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
10 invoke void @bar() to label %end unwind label %clean
15 %tst = landingpad { i8*, i32 } cleanup
20 ; CHECK-FUNC: .cfi_startproc
21 ; CHECK-FUNC: .cfi_personality 0, __gxx_personality_v0
22 ; CHECK-FUNC: .cfi_lsda 0, .Lexception0
23 ; CHECK-FUNC: stmg %r6, %r15, 48(%r15)
24 ; CHECK-FUNC: .cfi_offset %r6, -112
25 ; CHECK-FUNC: .cfi_offset %r7, -104
26 ; CHECK-FUNC: .cfi_offset %r14, -48
27 ; CHECK-FUNC: .cfi_offset %r15, -40
28 ; CHECK-FUNC: aghi %r15, -160
29 ; CHECK-FUNC: .cfi_def_cfa_offset 320
31 ; CHECK-FUNC: .cfi_endproc
33 ; CHECK-ET: .section .gcc_except_table,"a",@progbits
34 ; CHECK-ET-NEXT: .p2align 2
35 ; CHECK-ET-NEXT: GCC_except_table0:
36 ; CHECK-ET-NEXT: .Lexception0:
38 ; CHECK-REF: .cfi_personality 155, DW.ref.__gxx_personality_v0
39 ; CHECK-REF: .cfi_lsda 27, .Lexception0
40 ; CHECK-REF: .hidden DW.ref.__gxx_personality_v0
41 ; CHECK-REF: .weak DW.ref.__gxx_personality_v0
42 ; CHECK-REF: .section .data.DW.ref.__gxx_personality_v0,"aGw",@progbits,DW.ref.__gxx_personality_v0,comdat
43 ; CHECK-REF-NEXT: .p2align 3
44 ; CHECK-REF-NEXT: .type DW.ref.__gxx_personality_v0,@object
45 ; CHECK-REF-NEXT: .size DW.ref.__gxx_personality_v0, 8
46 ; CHECK-REF-NEXT: DW.ref.__gxx_personality_v0:
47 ; CHECK-REF-NEXT: .quad __gxx_personality_v0