You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
456 B

; RUN: llc -mtriple=sparc-linux-gnu < %s -show-mc-encoding -verify-machineinstrs | FileCheck %s
define void @test1() {
tail call void @llvm.trap()
unreachable
; CHECK-LABEL: test1:
; CHECK: ta 5 ! encoding: [0x91,0xd0,0x20,0x05]
}
declare void @llvm.trap()
; 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()