diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-12-25 13:09:08 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-12-25 13:09:08 +0000 |
commit | 99f78061e05833e815cb7a27e6c17eadcd028ce2 (patch) | |
tree | d6502369e0613e1de4916eef8f56870a3a651da5 /test/CodeGen | |
parent | 382ed78d3fef9f6c582e3cdcfb30f8c6fa3d0d79 (diff) | |
download | external_llvm-99f78061e05833e815cb7a27e6c17eadcd028ce2.zip external_llvm-99f78061e05833e815cb7a27e6c17eadcd028ce2.tar.gz external_llvm-99f78061e05833e815cb7a27e6c17eadcd028ce2.tar.bz2 |
X86: Shave off one shuffle from the pcmpeqq sequence for SSE2 by making use of and commutativity.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171064 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/X86/vec_compare.ll | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/CodeGen/X86/vec_compare.ll b/test/CodeGen/X86/vec_compare.ll index cf86c73..b6d91a3 100644 --- a/test/CodeGen/X86/vec_compare.ll +++ b/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 |