aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/Hexagon/trap-unreachable.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Hexagon/trap-unreachable.ll')
-rw-r--r--test/CodeGen/Hexagon/trap-unreachable.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/Hexagon/trap-unreachable.ll b/test/CodeGen/Hexagon/trap-unreachable.ll
new file mode 100644
index 0000000000000..74bc104afafe1
--- /dev/null
+++ b/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 }