summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/shrink-fp-const1.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/shrink-fp-const1.ll')
-rw-r--r--test/CodeGen/X86/shrink-fp-const1.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/X86/shrink-fp-const1.ll b/test/CodeGen/X86/shrink-fp-const1.ll
new file mode 100644
index 0000000000..966e69ec77
--- /dev/null
+++ b/test/CodeGen/X86/shrink-fp-const1.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | llc -march=x86-64 -mattr=+sse2 | not grep cvtss2sd
+; PR1264
+
+define double @foo(double %x) {
+ %y = mul double %x, 5.000000e-01
+ ret double %y
+}