aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/frame_thumb.ll
diff options
context:
space:
mode:
authorLauro Ramos Venancio <lauro.venancio@gmail.com>2007-04-27 17:58:03 +0000
committerLauro Ramos Venancio <lauro.venancio@gmail.com>2007-04-27 17:58:03 +0000
commitfdc9692f9763a7ffd1bbcadc01445db33fb468de (patch)
tree5cfbfa642d50b6c6da360aa56e1ff505d8408726 /test/CodeGen/ARM/frame_thumb.ll
parentd3e28347e533d77c8274ab4dc764c5e4a7e7387e (diff)
downloadexternal_llvm-fdc9692f9763a7ffd1bbcadc01445db33fb468de.zip
external_llvm-fdc9692f9763a7ffd1bbcadc01445db33fb468de.tar.gz
external_llvm-fdc9692f9763a7ffd1bbcadc01445db33fb468de.tar.bz2
In Thumb mode, the frame register must be R7.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36512 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/frame_thumb.ll')
-rw-r--r--test/CodeGen/ARM/frame_thumb.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/frame_thumb.ll b/test/CodeGen/ARM/frame_thumb.ll
new file mode 100644
index 0000000..fe82db9
--- /dev/null
+++ b/test/CodeGen/ARM/frame_thumb.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -march=thumb -mtriple=arm-apple-darwin \
+; RUN: -disable-fp-elim | not grep {r11}
+; RUN: llvm-as < %s | llc -march=thumb -mtriple=arm-linux-gnueabi \
+; RUN: -disable-fp-elim | not grep {r11}
+
+define i32 @f() {
+entry:
+ ret i32 10
+}