summaryrefslogtreecommitdiff
path: root/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
commitf4acec1be88c339366c0d8cdc32e57f1b8d0a81a (patch)
tree82aae3cf7f60dbf0d3ef4b121b642f17411ba477 /test/CodeGen/X86/fp-stack-ret.ll
parentcb18656734c374737f27c10750a3b532ac41ab26 (diff)
downloadllvm-f4acec1be88c339366c0d8cdc32e57f1b8d0a81a.tar.gz
llvm-f4acec1be88c339366c0d8cdc32e57f1b8d0a81a.tar.bz2
llvm-f4acec1be88c339366c0d8cdc32e57f1b8d0a81a.tar.xz
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34583 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/fp-stack-ret.ll')
-rw-r--r--test/CodeGen/X86/fp-stack-ret.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fp-stack-ret.ll b/test/CodeGen/X86/fp-stack-ret.ll
new file mode 100644
index 0000000000..d688f94daa
--- /dev/null
+++ b/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
+}
+