summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/ehabi-unwind.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM/ehabi-unwind.ll')
-rw-r--r--test/CodeGen/ARM/ehabi-unwind.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/ehabi-unwind.ll b/test/CodeGen/ARM/ehabi-unwind.ll
new file mode 100644
index 0000000..fd7d0e6
--- /dev/null
+++ b/test/CodeGen/ARM/ehabi-unwind.ll
@@ -0,0 +1,16 @@
+; Test that the EHABI unwind instruction generator does not encounter any
+; unfamiliar instructions.
+; RUN: llc < %s -mtriple=thumbv7 -arm-enable-ehabi -disable-fp-elim
+; RUN: llc < %s -mtriple=thumbv7 -arm-enable-ehabi
+; RUN: llc < %s -mtriple=thumbv7 -arm-enable-ehabi -arm-enable-ehabi-descriptors
+
+define void @_Z1fv() nounwind {
+entry:
+ ret void
+}
+
+define void @_Z1gv() nounwind {
+entry:
+ call void @_Z1fv()
+ ret void
+}
OpenPOWER on IntegriCloud