summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/pmulld.ll
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-03-16 13:52:51 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-03-16 13:52:51 +0000
commit0b9e2b025715febd862e92e08d40742822b44c56 (patch)
tree2f415ed648be49f4e0381fa539c1d1b9ff40dc9d /llvm/test/CodeGen/X86/pmulld.ll
parentc10801e8a5a3ea835f1b7a9ba82ce29da7ae8abd (diff)
downloadbcm5719-llvm-0b9e2b025715febd862e92e08d40742822b44c56.tar.gz
bcm5719-llvm-0b9e2b025715febd862e92e08d40742822b44c56.zip
test/CodeGen/X86: Add a pattern for Win64.
llvm-svn: 127733
Diffstat (limited to 'llvm/test/CodeGen/X86/pmulld.ll')
-rw-r--r--llvm/test/CodeGen/X86/pmulld.ll12
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/pmulld.ll b/llvm/test/CodeGen/X86/pmulld.ll
index 3ef594112b4..be527aed9a9 100644
--- a/llvm/test/CodeGen/X86/pmulld.ll
+++ b/llvm/test/CodeGen/X86/pmulld.ll
@@ -1,8 +1,13 @@
-; RUN: llc < %s -march=x86-64 -mattr=+sse41 -asm-verbose=0 | FileCheck %s
+; RUN: llc < %s -mtriple=x86_64-linux -mattr=+sse41 -asm-verbose=0 | FileCheck %s
+; RUN: llc < %s -mtriple=x86_64-win32 -mattr=+sse41 -asm-verbose=0 | FileCheck %s -check-prefix=WIN64
define <4 x i32> @test1(<4 x i32> %A, <4 x i32> %B) nounwind {
; CHECK: test1:
; CHECK-NEXT: pmulld
+
+; WIN64: test1:
+; WIN64-NEXT: movdqa (%rcx), %xmm0
+; WIN64-NEXT: pmulld (%rdx), %xmm0
%C = mul <4 x i32> %A, %B
ret <4 x i32> %C
}
@@ -10,6 +15,11 @@ define <4 x i32> @test1(<4 x i32> %A, <4 x i32> %B) nounwind {
define <4 x i32> @test1a(<4 x i32> %A, <4 x i32> *%Bp) nounwind {
; CHECK: test1a:
; CHECK-NEXT: pmulld
+
+; WIN64: test1a:
+; WIN64-NEXT: movdqa (%rcx), %xmm0
+; WIN64-NEXT: pmulld (%rdx), %xmm0
+
%B = load <4 x i32>* %Bp
%C = mul <4 x i32> %A, %B
ret <4 x i32> %C
OpenPOWER on IntegriCloud