brintos

brintos / llvm-project-archived public Read only

0
0
Text · 447 B · 21d4e2d Raw
21 lines · plain
1; RUN: llc < %s -mtriple=arm64-eabi | FileCheck %s2; RUN: llc < %s -mtriple=arm64-eabi -global-isel | FileCheck %s3 4define void @foo() nounwind {5; CHECK-LABEL: foo6; CHECK: brk #0x17  tail call void @llvm.trap()8  ret void9}10declare void @llvm.trap() nounwind11 12; CHECK-LABEL: {{\_?}}foo_trap_func:13; CHECK: bl	trap_func14 15define void @foo_trap_func() {16  call void @llvm.trap() #017  unreachable18}19 20attributes #0 = { "trap-func-name"="trap_func" }21