aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen
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
commit98a0104014e9bb6ed89c2572f615351fd526674a (patch)
treeece32cc02ad1371fce390f69d229b8ce103f7801 /test/CodeGen
parent9c546cd9460fb3e826723f42aee132698405d5fd (diff)
downloadexternal_llvm-98a0104014e9bb6ed89c2572f615351fd526674a.zip
external_llvm-98a0104014e9bb6ed89c2572f615351fd526674a.tar.gz
external_llvm-98a0104014e9bb6ed89c2572f615351fd526674a.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')
-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
+}