diff options
Diffstat (limited to 'test/CodeGen/X86/fp-stack-ret.ll')
-rw-r--r-- | test/CodeGen/X86/fp-stack-ret.ll | 12 |
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 +} + |