summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/peep-vector-extract-concat.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
commit37947c6bad087605f07d73a0a418c3781e2eaaa9 (patch)
tree33a4752c9698fcfe35ffdf3032aa621851f35fe7 /test/CodeGen/X86/peep-vector-extract-concat.ll
parentddbfbcf72e72d18b5aa149f37227961eac828030 (diff)
downloadllvm-37947c6bad087605f07d73a0a418c3781e2eaaa9.tar.gz
llvm-37947c6bad087605f07d73a0a418c3781e2eaaa9.tar.bz2
llvm-37947c6bad087605f07d73a0a418c3781e2eaaa9.tar.xz
test/CodeGen/X86: Add a pattern for Win64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127733 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/peep-vector-extract-concat.ll')
-rw-r--r--test/CodeGen/X86/peep-vector-extract-concat.ll7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/CodeGen/X86/peep-vector-extract-concat.ll b/test/CodeGen/X86/peep-vector-extract-concat.ll
index e4ab2b5e05..606a9be68b 100644
--- a/test/CodeGen/X86/peep-vector-extract-concat.ll
+++ b/test/CodeGen/X86/peep-vector-extract-concat.ll
@@ -1,4 +1,9 @@
-; RUN: llc < %s -march=x86-64 -mattr=+sse2,-sse41 | grep {pshufd \$3, %xmm0, %xmm0}
+; RUN: llc < %s -mtriple=x86_64-linux -mattr=+sse2,-sse41 | FileCheck %s
+; CHECK: pshufd $3, %xmm0, %xmm0
+
+; RUN: llc < %s -mtriple=x86_64-win32 -mattr=+sse2,-sse41 | FileCheck %s -check-prefix=WIN64
+; %a is passed indirectly on Win64.
+; WIN64: movss 12(%rcx), %xmm0
define float @foo(<8 x float> %a) nounwind {
%c = extractelement <8 x float> %a, i32 3