summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/fp-stack-ret.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-25 08:23:01 +0000
committerChris Lattner <sabre@nondot.org>2007-02-25 08:23:01 +0000
commit26ef86b6fee3abc6b4dd2ce8b48db6dfae8a5c06 (patch)
treea4b81bd90cc05d526c4278e093fa6bb6df60bb31 /llvm/test/CodeGen/X86/fp-stack-ret.ll
parentdfda38f7dc9f5915ae37fab58cea2072bdd6cef4 (diff)
downloadbcm5719-llvm-26ef86b6fee3abc6b4dd2ce8b48db6dfae8a5c06.tar.gz
bcm5719-llvm-26ef86b6fee3abc6b4dd2ce8b48db6dfae8a5c06.zip
new testcase
llvm-svn: 34583
Diffstat (limited to 'llvm/test/CodeGen/X86/fp-stack-ret.ll')
-rw-r--r--llvm/test/CodeGen/X86/fp-stack-ret.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/fp-stack-ret.ll b/llvm/test/CodeGen/X86/fp-stack-ret.ll
new file mode 100644
index 00000000000..d688f94daa5
--- /dev/null
+++ b/llvm/test/CodeGen/X86/fp-stack-ret.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin8 -march=x86 | grep fldl &&
+; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin8 -march=x86 | not grep xmm &&
+; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin8 -march=x86 | not grep 'sub.*esp'
+
+; These testcases shouldn't require loading into an XMM register then storing
+; to memory, then reloading into an FPStack reg.
+
+define double @test1(double *%P) {
+ %A = load double* %P
+ ret double %A
+}
+
OpenPOWER on IntegriCloud