summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/trap.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM/trap.ll')
-rw-r--r--test/CodeGen/ARM/trap.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/trap.ll b/test/CodeGen/ARM/trap.ll
new file mode 100644
index 0000000..763dff3
--- /dev/null
+++ b/test/CodeGen/ARM/trap.ll
@@ -0,0 +1,12 @@
+; RUN: llc < %s -march=arm | FileCheck %s
+; rdar://7961298
+
+define arm_apcscc void @t() nounwind {
+entry:
+; CHECK: t:
+; CHECK: trap
+ call void @llvm.trap()
+ unreachable
+}
+
+declare void @llvm.trap() nounwind
OpenPOWER on IntegriCloud