diff options
| author | Eric Christopher <echristo@apple.com> | 2010-03-30 18:49:01 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2010-03-30 18:49:01 +0000 |
| commit | 6ad816771420611d9947376dbade070e856fb929 (patch) | |
| tree | 84a28fe9b79b85f5f9ab533d944a962999812426 /llvm/test/CodeGen/X86/pmulld.ll | |
| parent | 4be6a758840e24cabd0766aac573857127f23a0b (diff) | |
| download | bcm5719-llvm-6ad816771420611d9947376dbade070e856fb929.tar.gz bcm5719-llvm-6ad816771420611d9947376dbade070e856fb929.zip | |
Remove the pmulld intrinsic and autoupdate it as a vector multiply.
Rewrite the pmulld patterns, and make sure that they fold in loads of
arguments into the instruction.
llvm-svn: 99910
Diffstat (limited to 'llvm/test/CodeGen/X86/pmulld.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/pmulld.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/pmulld.ll b/llvm/test/CodeGen/X86/pmulld.ll new file mode 100644 index 00000000000..3ef594112b4 --- /dev/null +++ b/llvm/test/CodeGen/X86/pmulld.ll @@ -0,0 +1,16 @@ +; RUN: llc < %s -march=x86-64 -mattr=+sse41 -asm-verbose=0 | FileCheck %s + +define <4 x i32> @test1(<4 x i32> %A, <4 x i32> %B) nounwind { +; CHECK: test1: +; CHECK-NEXT: pmulld + %C = mul <4 x i32> %A, %B + ret <4 x i32> %C +} + +define <4 x i32> @test1a(<4 x i32> %A, <4 x i32> *%Bp) nounwind { +; CHECK: test1a: +; CHECK-NEXT: pmulld + %B = load <4 x i32>* %Bp + %C = mul <4 x i32> %A, %B + ret <4 x i32> %C +} |

