blob: e940d98b620c57d637a64c829d917d3d9d4bbc5d [file] [log] [blame]
Krzysztof Parzyszekf6e875b2019-02-21 19:42:39 +00001; 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
7target triple = "hexagon"
8
9; Function Attrs: noreturn nounwind
10define i32 @f0() #0 {
11entry:
12 tail call void @llvm.trap()
13 unreachable
14}
15
16; Function Attrs: cold noreturn nounwind
17declare void @llvm.trap() #1
18
19attributes #0 = { noreturn nounwind "target-cpu"="hexagonv60" }
20attributes #1 = { cold noreturn nounwind }