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