diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-08-14 20:48:13 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-08-14 20:48:13 +0000 |
commit | fee1f6802d01a05fa8e80cc4ad301e8f2062ac81 (patch) | |
tree | ece32cc02ad1371fce390f69d229b8ce103f7801 /test/CodeGen/Thumb2/frameless.ll | |
parent | 7136630e91c62a4e12c44454f1297edb16b65269 (diff) | |
download | external_llvm-fee1f6802d01a05fa8e80cc4ad301e8f2062ac81.zip external_llvm-fee1f6802d01a05fa8e80cc4ad301e8f2062ac81.tar.gz external_llvm-fee1f6802d01a05fa8e80cc4ad301e8f2062ac81.tar.bz2 |
Leaf functions which do not save CSRs can be frameless even with -disable-fp-elim.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79039 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb2/frameless.ll')
-rw-r--r-- | test/CodeGen/Thumb2/frameless.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/Thumb2/frameless.ll b/test/CodeGen/Thumb2/frameless.ll new file mode 100644 index 0000000..1b6bb62 --- /dev/null +++ b/test/CodeGen/Thumb2/frameless.ll @@ -0,0 +1,6 @@ +; RUN: llvm-as < %s | llc -mtriple=thumbv7-apple-darwin -disable-fp-elim | not grep mov +; RUN: llvm-as < %s | llc -mtriple=thumbv7-linux -disable-fp-elim | not grep mov + +define arm_apcscc void @t() nounwind readnone { + ret void +} |