1 ; RUN: llc < %s -mtriple=arm64-eabi | FileCheck %s
2 ; RUN: llc < %s -mtriple=arm64-eabi -global-isel | FileCheck %s
3 define void @foo() nounwind {
6 tail call void @llvm.trap()
9 declare void @llvm.trap() nounwind
11 ; CHECK-LABEL: {{\_?}}foo_trap_func:
14 define void @foo_trap_func() {
15 call void @llvm.trap() #0
19 attributes #0 = { "trap-func-name"="trap_func" }