xref: /aosp_15_r20/external/llvm/test/CodeGen/SPARC/trap.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=sparc-linux-gnu < %s -show-mc-encoding | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workerdefine void @test1() {
4*9880d681SAndroid Build Coastguard Worker  tail call void @llvm.trap()
5*9880d681SAndroid Build Coastguard Worker  unreachable
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: test1:
8*9880d681SAndroid Build Coastguard Worker; CHECK: ta 5 ! encoding: [0x91,0xd0,0x20,0x05]
9*9880d681SAndroid Build Coastguard Worker}
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.trap()
12