[llvm] ae81435 - Revert rG8680dd5117b0c36f807fecc4360122ae1dd73b6d "[X86] getFauxShuffle - don't assume an UNDEF src element for AND/ANDNP results in an UNDEF shuffle mask index"

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 28 04:25:30 PDT 2022


Author: Simon Pilgrim
Date: 2022-04-28T12:25:14+01:00
New Revision: ae8143547a340771d21e0a2be937dde6ef284412

URL: https://github.com/llvm/llvm-project/commit/ae8143547a340771d21e0a2be937dde6ef284412
DIFF: https://github.com/llvm/llvm-project/commit/ae8143547a340771d21e0a2be937dde6ef284412.diff

LOG: Revert rG8680dd5117b0c36f807fecc4360122ae1dd73b6d "[X86] getFauxShuffle - don't assume an UNDEF src element for AND/ANDNP results in an UNDEF shuffle mask index"

I screwed up the merge somehow.

Added: 
    

Modified: 
    llvm/test/CodeGen/X86/vector-shuffle-combining.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/X86/vector-shuffle-combining.ll b/llvm/test/CodeGen/X86/vector-shuffle-combining.ll
index 97bac151d30c..d5460297f8be 100644
--- a/llvm/test/CodeGen/X86/vector-shuffle-combining.ll
+++ b/llvm/test/CodeGen/X86/vector-shuffle-combining.ll
@@ -3333,17 +3333,11 @@ define void @PR45604(<32 x i16>* %dst, <8 x i16>* %src) {
   ret void
 }
 
-; getFauxShuffle AND/ANDN decoding wrongly assumed an undef src always gives an undef dst.
+; FIXME: getFauxShuffle AND/ANDN decoding wrongly assumes an undef src always gives an undef dst.
 define <2 x i64> @PR55157(<16 x i8>* %0) {
-; SSE-LABEL: PR55157:
-; SSE:       # %bb.0:
-; SSE-NEXT:    xorps %xmm0, %xmm0
-; SSE-NEXT:    retq
-;
-; AVX-LABEL: PR55157:
-; AVX:       # %bb.0:
-; AVX-NEXT:    vxorps %xmm0, %xmm0, %xmm0
-; AVX-NEXT:    retq
+; CHECK-LABEL: PR55157:
+; CHECK:       # %bb.0:
+; CHECK-NEXT:    retq
   %2 = load <16 x i8>, <16 x i8>* %0, align 16
   %3 = icmp eq <16 x i8> %2, zeroinitializer
   %4 = tail call <16 x i8> @llvm.x86.sse2.pavg.b(<16 x i8> zeroinitializer, <16 x i8> zeroinitializer)


        


More information about the llvm-commits mailing list