summaryrefslogtreecommitdiff
path: root/test/CodeGen/Thumb/trap.ll
blob: e04059c4b021cc61585416a227ea222547ba441d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llc < %s -march=thumb | FileCheck %s
; rdar://7961298

define void @t() nounwind {
entry:
; CHECK-LABEL: t:
; CHECK: trap
  call void @llvm.trap()
  unreachable
}

declare void @llvm.trap() nounwind