summaryrefslogtreecommitdiff
path: root/test/CodeGen/Thumb/trap.ll
blob: 04cd3eed0fcba7d5cee8c6e0c3642434908947fb (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: t:
; CHECK: trap
  call void @llvm.trap()
  unreachable
}

declare void @llvm.trap() nounwind