1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/CodeGen/ARM/trap-unreachable.ll
David Green 7df65b2048 [CodeGen] Add a -trap-unreachable option for debugging
Add a common -trap-unreachable option, similar to the target
specific hexagon equivalent, which has been replaced. This
turns unreachable instructions into traps, which is useful for
debugging.

Differential Revision: https://reviews.llvm.org/D42965

llvm-svn: 324880
2018-02-12 11:06:27 +00:00

9 lines
162 B
LLVM

; RUN: llc -mtriple=thumbv7 -trap-unreachable < %s | FileCheck %s
; CHECK: .inst.n 0xdefe
define void @test() #0 {
unreachable
}
attributes #0 = { nounwind }