1 ; RUN: llc -global-isel < %s | FileCheck %s
3 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
4 target triple = "aarch64-unknown-linux-gnu"
6 @.str.2 = private unnamed_addr constant [7 x i8] c"Boom!\0A\00", align 1
8 define dso_local void @trap() {
13 define dso_local void @test() personality ptr @__gxx_personality_v0 {
21 invoke void asm sideeffect unwind "bl trap", ""()
22 to label %invoke.cont unwind label %lpad
28 %0 = landingpad { ptr, i32 }
31 call void (ptr, ...) @printf(ptr @.str.2)
32 resume { ptr, i32 } %0
36 declare dso_local i32 @__gxx_personality_v0(...)
38 declare dso_local void @printf(ptr, ...)
40 ; Exception table generation around the inline assembly
42 ; CHECK-LABEL: GCC_except_table1:
43 ; CHECK-NEXT: .Lexception0:
44 ; CHECK-NEXT: .byte 255 // @LPStart Encoding = omit
45 ; CHECK-NEXT: .byte 255 // @TType Encoding = omit
46 ; CHECK-NEXT: .byte 1 // Call site Encoding = uleb128
47 ; CHECK-NEXT: .uleb128 .Lcst_end0-.Lcst_begin0
48 ; CHECK-NEXT: .Lcst_begin0:
49 ; CHECK-NEXT: .uleb128 .Ltmp0-.Lfunc_begin0 // >> Call Site 1 <<
50 ; CHECK-NEXT: .uleb128 .Ltmp1-.Ltmp0 // Call between .Ltmp0 and .Ltmp1
51 ; CHECK-NEXT: .uleb128 .Ltmp2-.Lfunc_begin0 // jumps to .Ltmp2
52 ; CHECK-NEXT: .byte 0 // On action: cleanup
53 ; CHECK-NEXT: .uleb128 .Ltmp1-.Lfunc_begin0 // >> Call Site 2 <<
54 ; CHECK-NEXT: .uleb128 .Lfunc_end1-.Ltmp1 // Call between .Ltmp1 and .Lfunc_end1
55 ; CHECK-NEXT: .byte 0 // has no landing pad
56 ; CHECK-NEXT: .byte 0 // On action: cleanup
57 ; CHECK-NEXT: .Lcst_end0: