1; RUN: llc < %s | FileCheck %s 2 3target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" 4target triple = "x86_64-unknown-linux-gnu" 5 6@.str.2 = private unnamed_addr constant [7 x i8] c"Boom!\0A\00", align 1 7 8define dso_local void @trap() { 9entry: 10 unreachable 11} 12 13define dso_local void @test() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) { 14entry: 15 16; CHECK-NOT: .Ltmp0: 17; CHECK: callq trap 18; CHECK-NOT: .Ltmp1: 19 20 invoke void asm sideeffect "call trap", "~{dirflag},~{fpsr},~{flags}"() 21 to label %invoke.cont unwind label %lpad 22 23invoke.cont: 24 ret void 25 26lpad: 27 %0 = landingpad { i8*, i32 } 28 cleanup 29 call void (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)) 30 resume { i8*, i32 } %0 31 32} 33 34declare dso_local i32 @__gxx_personality_v0(...) 35 36declare dso_local void @printf(i8*, ...) 37 38; Exception table generation around the inline assembly shouldn't exist 39 40; CHECK-LABEL: GCC_except_table1: 41; CHECK-NEXT: .Lexception0: 42; CHECK-NEXT: .byte 255 # @LPStart Encoding = omit 43; CHECK-NEXT: .byte 255 # @TType Encoding = omit 44; CHECK-NEXT: .byte 1 # Call site Encoding = uleb128 45; CHECK-NEXT: .uleb128 .Lcst_end0-.Lcst_begin0 46; CHECK-NEXT: .Lcst_begin0: 47; CHECK-NEXT: .uleb128 .Lfunc_begin0-.Lfunc_begin0 # >> Call Site 1 << 48; CHECK-NEXT: .uleb128 .Lfunc_end1-.Lfunc_begin0 # Call between .Lfunc_begin0 and .Lfunc_end1 49; CHECK-NEXT: .byte 0 # has no landing pad 50; CHECK-NEXT: .byte 0 # On action: cleanup 51; CHECK-NEXT: .Lcst_end0: 52