2018-07-17 13:49:33 +08:00
|
|
|
; RUN: llc -mtriple=sparc-linux-gnu < %s -show-mc-encoding -verify-machineinstrs | FileCheck %s
|
2014-02-24 05:43:52 +08:00
|
|
|
|
|
|
|
define void @test1() {
|
|
|
|
tail call void @llvm.trap()
|
|
|
|
unreachable
|
|
|
|
|
|
|
|
; CHECK-LABEL: test1:
|
|
|
|
; CHECK: ta 5 ! encoding: [0x91,0xd0,0x20,0x05]
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @llvm.trap()
|
2018-07-16 20:16:53 +08:00
|
|
|
|
|
|
|
; CHECK-LABEL: testdebugtrap:
|
|
|
|
; CHECK: ta 1 ! encoding: [0x91,0xd0,0x20,0x01]
|
|
|
|
define void @testdebugtrap() {
|
|
|
|
entry:
|
|
|
|
call void @llvm.debugtrap()
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @llvm.debugtrap()
|