Krzysztof Parzyszek | f6e875b | 2019-02-21 19:42:39 +0000 | [diff] [blame] | 1 | ; RUN: llc -march=hexagon < %s | FileCheck %s |
| 2 | |
| 3 | ; Generate code that is guaranteed to crash. At the moment, it's a |
| 4 | ; misaligned load. |
| 5 | ; CHECK: memd(##3134984174) |
| 6 | |
| 7 | target triple = "hexagon" |
| 8 | |
| 9 | ; Function Attrs: noreturn nounwind |
| 10 | define i32 @f0() #0 { |
| 11 | entry: |
| 12 | tail call void @llvm.trap() |
| 13 | unreachable |
| 14 | } |
| 15 | |
| 16 | ; Function Attrs: cold noreturn nounwind |
| 17 | declare void @llvm.trap() #1 |
| 18 | |
| 19 | attributes #0 = { noreturn nounwind "target-cpu"="hexagonv60" } |
| 20 | attributes #1 = { cold noreturn nounwind } |