summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/fmul-zero.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/fmul-zero.ll')
-rw-r--r--test/CodeGen/X86/fmul-zero.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fmul-zero.ll b/test/CodeGen/X86/fmul-zero.ll
new file mode 100644
index 0000000000..8f705a4d24
--- /dev/null
+++ b/test/CodeGen/X86/fmul-zero.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -march=x86-64 -enable-unsafe-fp-math | not grep mulps
+; RUN: llvm-as < %s | llc -march=x86-64 | grep mulps
+
+define void @test14(<4 x float>*) nounwind {
+ load <4 x float>* %0, align 1
+ mul <4 x float> %2, zeroinitializer
+ store <4 x float> %3, <4 x float>* %0, align 1
+ ret void
+}