summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Hexagon/trap-unreachable.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/Hexagon/trap-unreachable.ll')
-rw-r--r--llvm/test/CodeGen/Hexagon/trap-unreachable.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Hexagon/trap-unreachable.ll b/llvm/test/CodeGen/Hexagon/trap-unreachable.ll
new file mode 100644
index 00000000000..74bc104afaf
--- /dev/null
+++ b/llvm/test/CodeGen/Hexagon/trap-unreachable.ll
@@ -0,0 +1,8 @@
+; RUN: llc -march=hexagon -hexagon-trap-unreachable < %s | FileCheck %s
+; CHECK: call abort
+
+define void @fred() #0 {
+ unreachable
+}
+
+attributes #0 = { nounwind }
OpenPOWER on IntegriCloud