summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/vec_logical.ll
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-01-28 23:52:09 +0000
committerCraig Topper <craig.topper@gmail.com>2017-01-28 23:52:09 +0000
commit6533e40e9d9bfdecc9f44fe73039268a8cd50e84 (patch)
tree5380b9995e17f69357178eb61bf9f975f8a016da /llvm/test/CodeGen/X86/vec_logical.ll
parented0ea561fbd00afd1478a85c2c04f1b76f201203 (diff)
downloadbcm5719-llvm-6533e40e9d9bfdecc9f44fe73039268a8cd50e84.tar.gz
bcm5719-llvm-6533e40e9d9bfdecc9f44fe73039268a8cd50e84.zip
[X86] Fix vector ANDN matching to work correctly when both inputs to the AND are XORs.
llvm-svn: 293403
Diffstat (limited to 'llvm/test/CodeGen/X86/vec_logical.ll')
-rw-r--r--llvm/test/CodeGen/X86/vec_logical.ll12
1 files changed, 4 insertions, 8 deletions
diff --git a/llvm/test/CodeGen/X86/vec_logical.ll b/llvm/test/CodeGen/X86/vec_logical.ll
index fb9db449ac9..92ec76009f6 100644
--- a/llvm/test/CodeGen/X86/vec_logical.ll
+++ b/llvm/test/CodeGen/X86/vec_logical.ll
@@ -89,18 +89,14 @@ entry:
define <2 x i64> @andn_double_xor(<2 x i64> %a, <2 x i64> %b, <2 x i64> %c) {
; SSE-LABEL: andn_double_xor:
; SSE: # BB#0:
-; SSE-NEXT: pcmpeqd %xmm3, %xmm3
-; SSE-NEXT: pxor %xmm3, %xmm0
-; SSE-NEXT: pxor %xmm2, %xmm1
-; SSE-NEXT: pand %xmm1, %xmm0
+; SSE-NEXT: xorps %xmm2, %xmm1
+; SSE-NEXT: andnps %xmm1, %xmm0
; SSE-NEXT: retl
;
; AVX-LABEL: andn_double_xor:
; AVX: # BB#0:
-; AVX-NEXT: vpcmpeqd %xmm3, %xmm3, %xmm3
-; AVX-NEXT: vpxor %xmm3, %xmm0, %xmm0
-; AVX-NEXT: vpxor %xmm2, %xmm1, %xmm1
-; AVX-NEXT: vpand %xmm1, %xmm0, %xmm0
+; AVX-NEXT: vxorps %xmm2, %xmm1, %xmm1
+; AVX-NEXT: vandnps %xmm1, %xmm0, %xmm0
; AVX-NEXT: retl
%1 = xor <2 x i64> %a, <i64 -1, i64 -1>
%2 = xor <2 x i64> %b, %c
OpenPOWER on IntegriCloud