[ARM] Handle t2ADDri in ARMAsmPrinter::EmitUnwindingInstruction.
[oota-llvm.git] / test / CodeGen / Thumb2 / emit-unwinding.ll
diff --git a/test/CodeGen/Thumb2/emit-unwinding.ll b/test/CodeGen/Thumb2/emit-unwinding.ll
new file mode 100644 (file)
index 0000000..1f1ea1b
--- /dev/null
@@ -0,0 +1,11 @@
+; RUN: llc -mtriple thumbv7em-apple-unknown-eabi-macho %s -o - -O0 | FileCheck %s
+
+; CHECK: add.w r11, sp, #{{[1-9]+}}
+
+define void @foo1() {
+  call void asm sideeffect "", "~{r4}"()
+  call void @foo2()
+  ret void
+}
+
+declare void @foo2()