summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/fp-stack-direct-ret.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/X86/fp-stack-direct-ret.ll')
-rw-r--r--llvm/test/CodeGen/X86/fp-stack-direct-ret.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/fp-stack-direct-ret.ll b/llvm/test/CodeGen/X86/fp-stack-direct-ret.ll
new file mode 100644
index 00000000000..78be2a39def
--- /dev/null
+++ b/llvm/test/CodeGen/X86/fp-stack-direct-ret.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | llc -march=x86 | not grep fstp
+; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah | not grep movsd
+
+declare double @foo()
+
+define double @bar() {
+entry:
+ %tmp5 = tail call double @foo()
+ ret double %tmp5
+}
+
OpenPOWER on IntegriCloud