teak-llvm/llvm/test/CodeGen/Hexagon/trap-unreachable.ll
Krzysztof Parzyszek f6e875bacf [Hexagon] Use misaligned load instead of trap0(#0) for __builtin_trap
The trap instruction is intercepted by various runtime environments,
and instead of a crash it creates confusion.

This reapplies r354606 with a fix.

llvm-svn: 354611
2019-02-21 19:42:39 +00:00

11 lines
210 B
LLVM

; RUN: llc -march=hexagon -trap-unreachable < %s | FileCheck %s
; Trap is implemented via a misaligned load.
; CHECK: memd(##3134984174)
define void @fred() #0 {
unreachable
}
attributes #0 = { nounwind }