diff options
-rw-r--r-- | test/CodeGen/X86/fmul-zero.ll | 9 | ||||
-rw-r--r-- | test/Transforms/InstCombine/mul.ll | 8 |
2 files changed, 9 insertions, 8 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 +} diff --git a/test/Transforms/InstCombine/mul.ll b/test/Transforms/InstCombine/mul.ll index 1a74025434..0455a3f7a2 100644 --- a/test/Transforms/InstCombine/mul.ll +++ b/test/Transforms/InstCombine/mul.ll @@ -83,11 +83,3 @@ define internal void @test13(<4 x float>*) { store <4 x float> %3, <4 x float>* %0, align 1 ret void } - -define internal void @test14(<4 x float>*) { - 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 -} - |