2011-04-08 04:31:12 +08:00
|
|
|
; RUN: llc < %s -mtriple=arm-apple-darwin | FileCheck %s -check-prefix=INSTR
|
2011-04-09 05:37:21 +08:00
|
|
|
; RUN: llc < %s -mtriple=arm-apple-darwin -trap-func=_trap | FileCheck %s -check-prefix=FUNC
|
2010-05-11 15:26:32 +08:00
|
|
|
; rdar://7961298
|
2011-04-08 04:31:12 +08:00
|
|
|
; rdar://9249183
|
2010-05-11 15:26:32 +08:00
|
|
|
|
2010-06-17 23:18:27 +08:00
|
|
|
define void @t() nounwind {
|
2010-05-11 15:26:32 +08:00
|
|
|
entry:
|
2011-04-08 04:31:12 +08:00
|
|
|
; INSTR: t:
|
|
|
|
; INSTR: trap
|
|
|
|
|
|
|
|
; FUNC: t:
|
|
|
|
; FUNC: bl __trap
|
2010-05-11 15:26:32 +08:00
|
|
|
call void @llvm.trap()
|
|
|
|
unreachable
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @llvm.trap() nounwind
|