diff options
author | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2007-04-27 17:58:03 +0000 |
---|---|---|
committer | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2007-04-27 17:58:03 +0000 |
commit | fdc9692f9763a7ffd1bbcadc01445db33fb468de (patch) | |
tree | 5cfbfa642d50b6c6da360aa56e1ff505d8408726 /test/CodeGen/ARM/frame_thumb.ll | |
parent | d3e28347e533d77c8274ab4dc764c5e4a7e7387e (diff) | |
download | external_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.ll | 9 |
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 +} |