[llvm] b40532c - [NFC][X86] Fixup typo in `blend-of-shift.ll`

Roman Lebedev via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 22 05:15:01 PST 2023


Author: Roman Lebedev
Date: 2023-01-22T16:14:27+03:00
New Revision: b40532ceb043c04d794f7b9dcf70189580f4f86a

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

LOG: [NFC][X86] Fixup typo in `blend-of-shift.ll`

Added: 
    

Modified: 
    llvm/test/CodeGen/X86/blend-of-shift.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/X86/blend-of-shift.ll b/llvm/test/CodeGen/X86/blend-of-shift.ll
index 5401f442338c..cf382c7903bd 100644
--- a/llvm/test/CodeGen/X86/blend-of-shift.ll
+++ b/llvm/test/CodeGen/X86/blend-of-shift.ll
@@ -278,16 +278,19 @@ define <2 x i64> @shuffle_i64_of_lshr_i16(<8 x i16> %x, <8 x i16> %y) nounwind {
 ; SSE2-LABEL: shuffle_i64_of_lshr_i16:
 ; SSE2:       # %bb.0:
 ; SSE2-NEXT:    psrlw $15, %xmm0
-; SSE2-NEXT:    pshufd {{.*#+}} xmm0 = xmm0[2,3,0,1]
+; SSE2-NEXT:    psrlw $15, %xmm1
+; SSE2-NEXT:    shufps {{.*#+}} xmm1 = xmm1[2,3],xmm0[0,1]
+; SSE2-NEXT:    movaps %xmm1, %xmm0
 ; SSE2-NEXT:    ret{{[l|q]}}
 ;
 ; AVX2-LABEL: shuffle_i64_of_lshr_i16:
 ; AVX2:       # %bb.0:
 ; AVX2-NEXT:    vpsrlw $15, %xmm0, %xmm0
-; AVX2-NEXT:    vpshufd {{.*#+}} xmm0 = xmm0[2,3,0,1]
+; AVX2-NEXT:    vpsrlw $15, %xmm1, %xmm1
+; AVX2-NEXT:    vpalignr {{.*#+}} xmm0 = xmm1[8,9,10,11,12,13,14,15],xmm0[0,1,2,3,4,5,6,7]
 ; AVX2-NEXT:    ret{{[l|q]}}
   %i1 = tail call <8 x i16> @llvm.x86.sse2.psrli.w(<8 x i16> %x, i32 15)
-  %i2 = tail call <8 x i16> @llvm.x86.sse2.psrli.w(<8 x i16> %x, i32 15)
+  %i2 = tail call <8 x i16> @llvm.x86.sse2.psrli.w(<8 x i16> %y, i32 15)
   %i3 = bitcast <8 x i16> %i1 to <2 x i64>
   %i4 = bitcast <8 x i16> %i2 to <2 x i64>
   %i5 = shufflevector <2 x i64> %i3, <2 x i64> %i4, <2 x i32> <i32 3, i32 0>


        


More information about the llvm-commits mailing list