summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/vec_compare.ll
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-12-25 13:09:08 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-12-25 13:09:08 +0000
commit81b5a8fd2ebe357edef180e0a4da986773c24df4 (patch)
tree5a3bc18b0b12710d2f2f3781fff90f96fb3f5fc4 /llvm/test/CodeGen/X86/vec_compare.ll
parentdf4af41b9b734e9fdf0453ab092013199b4ad4e0 (diff)
downloadbcm5719-llvm-81b5a8fd2ebe357edef180e0a4da986773c24df4.tar.gz
bcm5719-llvm-81b5a8fd2ebe357edef180e0a4da986773c24df4.zip
X86: Shave off one shuffle from the pcmpeqq sequence for SSE2 by making use of and commutativity.
llvm-svn: 171064
Diffstat (limited to 'llvm/test/CodeGen/X86/vec_compare.ll')
-rw-r--r--llvm/test/CodeGen/X86/vec_compare.ll6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/X86/vec_compare.ll b/llvm/test/CodeGen/X86/vec_compare.ll
index cf86c737c73..b6d91a3f770 100644
--- a/llvm/test/CodeGen/X86/vec_compare.ll
+++ b/llvm/test/CodeGen/X86/vec_compare.ll
@@ -45,8 +45,7 @@ define <4 x i32> @test4(<4 x i32> %A, <4 x i32> %B) nounwind {
define <2 x i64> @test5(<2 x i64> %A, <2 x i64> %B) nounwind {
; CHECK: test5:
; CHECK: pcmpeqd
-; CHECK: pshufd $-11
-; CHECK: pshufd $-96
+; CHECK: pshufd $-79
; CHECK: pand
; CHECK: ret
%C = icmp eq <2 x i64> %A, %B
@@ -57,8 +56,7 @@ define <2 x i64> @test5(<2 x i64> %A, <2 x i64> %B) nounwind {
define <2 x i64> @test6(<2 x i64> %A, <2 x i64> %B) nounwind {
; CHECK: test6:
; CHECK: pcmpeqd
-; CHECK: pshufd $-11
-; CHECK: pshufd $-96
+; CHECK: pshufd $-79
; CHECK: pand
; CHECK: pcmpeqd
; CHECK: pxor
OpenPOWER on IntegriCloud