mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
7df65b2048
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
9 lines
162 B
LLVM
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 }
|