summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Thumb2/frameless.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-08-14 20:48:13 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-08-14 20:48:13 +0000
commitfee1f6802d01a05fa8e80cc4ad301e8f2062ac81 (patch)
treeece32cc02ad1371fce390f69d229b8ce103f7801 /test/CodeGen/Thumb2/frameless.ll
parent7136630e91c62a4e12c44454f1297edb16b65269 (diff)
downloadexternal_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.ll6
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
+}