summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/trap.ll
blob: 38842a9646ffcabc1792b0754b6a8be6555b5bc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: llc < %s -mtriple=arm-apple-darwin | FileCheck %s -check-prefix=INSTR
; RUN: llc < %s -mtriple=arm-apple-darwin -trap-func=_trap | FileCheck %s -check-prefix=FUNC
; rdar://7961298
; rdar://9249183

define void @t() nounwind {
entry:
; INSTR: t:
; INSTR: trap

; FUNC: t:
; FUNC: bl __trap
  call void @llvm.trap()
  unreachable
}

declare void @llvm.trap() nounwind