1 ; RUN: llc -O0 -global-isel -stop-after=irtranslator < %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 i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
16 ; CHECK-LABEL: name: test
18 ; CHECK-NEXT: bb.1.entry
20 ; CHECK-NEXT: INLINEASM
21 ; CHECK-NEXT: EH_LABEL
23 invoke void asm sideeffect unwind "bl trap", ""()
24 to label %invoke.cont unwind label %lpad
33 %0 = landingpad { i8*, i32 }
35 call void (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
36 resume { i8*, i32 } %0
40 declare dso_local i32 @__gxx_personality_v0(...)
42 declare dso_local void @printf(i8*, ...)