YouCompleteMe/cpp/llvm/test/CodeGen/ARM/trap.ll

18 lines
373 B
LLVM
Raw Normal View History

2012-07-05 20:51:06 -04:00
; 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