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 | |
| 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')
| -rw-r--r-- | llvm/test/Bitcode/sse41_pmulld.ll | 2 | ||||
| -rw-r--r-- | llvm/test/Bitcode/sse41_pmulld.ll.bc | bin | 0 -> 560 bytes | |||
| -rw-r--r-- | llvm/test/CodeGen/X86/pmul.ll | 2 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/pmulld.ll | 16 |
4 files changed, 19 insertions, 1 deletions
diff --git a/llvm/test/Bitcode/sse41_pmulld.ll b/llvm/test/Bitcode/sse41_pmulld.ll new file mode 100644 index 00000000000..caf85479bbc --- /dev/null +++ b/llvm/test/Bitcode/sse41_pmulld.ll @@ -0,0 +1,2 @@ +; RUN: llvm-dis < %s.bc | not grep {i32 @llvm\\.pmulld} +; RUN: llvm-dis < %s.bc | grep mul
\ No newline at end of file diff --git a/llvm/test/Bitcode/sse41_pmulld.ll.bc b/llvm/test/Bitcode/sse41_pmulld.ll.bc Binary files differnew file mode 100644 index 00000000000..bd66f0a05ca --- /dev/null +++ b/llvm/test/Bitcode/sse41_pmulld.ll.bc diff --git a/llvm/test/CodeGen/X86/pmul.ll b/llvm/test/CodeGen/X86/pmul.ll index e2746a8c063..bf5229aa1ee 100644 --- a/llvm/test/CodeGen/X86/pmul.ll +++ b/llvm/test/CodeGen/X86/pmul.ll @@ -1,6 +1,6 @@ ; RUN: llc < %s -march=x86 -mattr=sse41 -stack-alignment=16 > %t ; RUN: grep pmul %t | count 12 -; RUN: grep mov %t | count 12 +; RUN: grep mov %t | count 11 define <4 x i32> @a(<4 x i32> %i) nounwind { %A = mul <4 x i32> %i, < i32 117, i32 117, i32 117, i32 117 > 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 +} |

