1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00
llvm-mirror/test/CodeGen/Hexagon/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
156 B
LLVM

; RUN: llc -march=hexagon -trap-unreachable < %s | FileCheck %s
; CHECK: call abort
define void @fred() #0 {
unreachable
}
attributes #0 = { nounwind }