summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/fmul-zero.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-06-04 18:22:31 +0000
committerDan Gohman <gohman@apple.com>2009-06-04 18:22:31 +0000
commit0e19a3f89e35ded2c3dd1aeabc784a7d6440dd7e (patch)
tree0bc8930b38bfc5112f2d3320efcd7758eb27f8ef /test/CodeGen/X86/fmul-zero.ll
parentef23d711bc4ff72799693f40c15b29cfdabd89a0 (diff)
downloadllvm-0e19a3f89e35ded2c3dd1aeabc784a7d6440dd7e.tar.gz
llvm-0e19a3f89e35ded2c3dd1aeabc784a7d6440dd7e.tar.bz2
llvm-0e19a3f89e35ded2c3dd1aeabc784a7d6440dd7e.tar.xz
Check in test changes that I accidentally left out of r72872.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72875 91177308-0d34-0410-b5e6-96231b3b80d8
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
+}