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 4 5 declare i32 @__gxx_personality_v0(...) 6 7 declare void @bar() 8 9 define i64 @foo(i64 %lhs, i64 %rhs) { 10 invoke void @bar() to label %end unwind label %clean 11 end: 12 ret i64 0 13 14 clean: 15 %tst = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) cleanup 16 ret i64 42 17 } 18 19 ; CHECK-FUNC: foo: 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 %r14, %r15, 112(%r15) 24 ; CHECK-FUNC: .cfi_offset %r14, -48 25 ; CHECK-FUNC: .cfi_offset %r15, -40 26 ; CHECK-FUNC: aghi %r15, -160 27 ; CHECK-FUNC: .cfi_def_cfa_offset 320 28 ; ...main function... 29 ; CHECK-FUNC: .cfi_endproc 30 ; 31 ; CHECK-ET: .section .gcc_except_table,"a",@progbits 32 ; CHECK-ET-NEXT: .align 4 33 ; CHECK-ET-NEXT: GCC_except_table0: 34 ; CHECK-ET-NEXT: .Lexception0: 35 ; 36 ; CHECK-REF: .cfi_personality 155, DW.ref.__gxx_personality_v0 37 ; CHECK-REF: .cfi_lsda 27, .Lexception0 38 ; CHECK-REF: .hidden DW.ref.__gxx_personality_v0 39 ; CHECK-REF: .weak DW.ref.__gxx_personality_v0 40 ; CHECK-REF: .section .data.DW.ref.__gxx_personality_v0,"aGw",@progbits,DW.ref.__gxx_personality_v0,comdat 41 ; CHECK-REF-NEXT: .align 8 42 ; CHECK-REF-NEXT: .type DW.ref.__gxx_personality_v0,@object 43 ; CHECK-REF-NEXT: .size DW.ref.__gxx_personality_v0, 8 44 ; CHECK-REF-NEXT: DW.ref.__gxx_personality_v0: 45 ; CHECK-REF-NEXT: .quad __gxx_personality_v0 46