mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 16:33:37 +01:00
bc053100af
llvm-svn: 129152
18 lines
373 B
LLVM
18 lines
373 B
LLVM
; 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
|