1 ; FIXME: Fix machine verifier issues and remove -verify-machineinstrs=0. PR39439.
2 ; RUN: llc --exception-model=sjlj -verify-machineinstrs=0 < %s | FileCheck %s
4 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
5 target triple = "x86_64-unknown-linux-gnu"
7 @.str.2 = private unnamed_addr constant [7 x i8] c"Boom!\0A\00", align 1
9 define dso_local void @trap() {
14 define dso_local void @test() personality ptr @__gxx_personality_sj0 {
17 ; CHECK: callq _Unwind_SjLj_Register@PLT
18 ; CHECK-LABEL: .Ltmp0:
20 ; CHECK-LABEL: .Ltmp1:
21 ; CHECK: callq _Unwind_SjLj_Unregister@PLT
23 invoke void asm sideeffect unwind "call trap", "~{dirflag},~{fpsr},~{flags}"()
24 to label %invoke.cont unwind label %lpad
30 %0 = landingpad { ptr, i32 }
33 ; CHECK: callq _Unwind_SjLj_Resume@PLT
34 call void (ptr, ...) @printf(ptr @.str.2)
35 resume { ptr, i32 } %0
39 declare dso_local i32 @__gxx_personality_sj0(...)
41 declare dso_local void @printf(ptr, ...)