summaryrefslogtreecommitdiff
path: root/test/CodeGen/SPARC/trap.ll
blob: b72a63caeebcc1b4e9cd501543be48ed1804fa7a (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: llc -mtriple=sparc-linux-gnu < %s -show-mc-encoding | 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()