1 ; RUN: opt < %s -O2 -S | FileCheck %s
3 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
4 target triple = "x86_64-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 {
15 ; CHECK: define dso_local void @test()
17 ; CHECK-NEXT: invoke void asm sideeffect unwind
19 invoke void asm sideeffect unwind "call trap", "~{dirflag},~{fpsr},~{flags}"()
20 to label %invoke.cont unwind label %lpad
26 ; CHECK: %0 = landingpad { ptr, i32 }
27 ; CHECK: resume { ptr, i32 } %0
29 %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, ...)