xref: /aosp_15_r20/external/llvm/test/CodeGen/Thumb/trap.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=thumb-eabi %s -o - | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker; rdar://7961298
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Workerdefine void @t() nounwind {
5*9880d681SAndroid Build Coastguard Workerentry:
6*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: t:
7*9880d681SAndroid Build Coastguard Worker; CHECK: trap
8*9880d681SAndroid Build Coastguard Worker  call void @llvm.trap()
9*9880d681SAndroid Build Coastguard Worker  unreachable
10*9880d681SAndroid Build Coastguard Worker}
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.trap() nounwind
13