[llvm] e17f701 - [X86] vselect-pcmp.ll - regenerate test checks with vpternlog comments
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 9 05:33:35 PDT 2024
Author: Simon Pilgrim
Date: 2024-10-09T13:33:05+01:00
New Revision: e17f701f559fc637b41c27ea240568bb33b56d1f
URL: https://github.com/llvm/llvm-project/commit/e17f701f559fc637b41c27ea240568bb33b56d1f
DIFF: https://github.com/llvm/llvm-project/commit/e17f701f559fc637b41c27ea240568bb33b56d1f.diff
LOG: [X86] vselect-pcmp.ll - regenerate test checks with vpternlog comments
Added:
Modified:
llvm/test/CodeGen/X86/vselect-pcmp.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/X86/vselect-pcmp.ll b/llvm/test/CodeGen/X86/vselect-pcmp.ll
index 84317ad34fb29d..545184e03e4f3c 100644
--- a/llvm/test/CodeGen/X86/vselect-pcmp.ll
+++ b/llvm/test/CodeGen/X86/vselect-pcmp.ll
@@ -41,7 +41,7 @@ define <8 x i16> @signbit_sel_v8i16(<8 x i16> %x, <8 x i16> %y, <8 x i16> %mask)
; AVX512VL: # %bb.0:
; AVX512VL-NEXT: vpxor %xmm3, %xmm3, %xmm3
; AVX512VL-NEXT: vpcmpgtw %xmm2, %xmm3, %xmm2
-; AVX512VL-NEXT: vpternlogq $226, %xmm1, %xmm2, %xmm0
+; AVX512VL-NEXT: vpternlogq {{.*#+}} xmm0 = xmm1 ^ (xmm2 & (xmm0 ^ xmm1))
; AVX512VL-NEXT: retq
;
; XOP-LABEL: signbit_sel_v8i16:
@@ -263,7 +263,7 @@ define <16 x i16> @signbit_sel_v16i16(<16 x i16> %x, <16 x i16> %y, <16 x i16> %
; AVX512VL: # %bb.0:
; AVX512VL-NEXT: vpxor %xmm3, %xmm3, %xmm3
; AVX512VL-NEXT: vpcmpgtw %ymm2, %ymm3, %ymm2
-; AVX512VL-NEXT: vpternlogq $226, %ymm1, %ymm2, %ymm0
+; AVX512VL-NEXT: vpternlogq {{.*#+}} ymm0 = ymm1 ^ (ymm2 & (ymm0 ^ ymm1))
; AVX512VL-NEXT: retq
;
; XOP-LABEL: signbit_sel_v16i16:
@@ -615,7 +615,7 @@ define <16 x i16> @blend_splat1_mask_cond_v16i16(<16 x i16> %x, <16 x i16> %y, <
; AVX512VL-NEXT: vpandd {{\.?LCPI[0-9]+_[0-9]+}}(%rip){1to8}, %ymm0, %ymm0
; AVX512VL-NEXT: vpxor %xmm3, %xmm3, %xmm3
; AVX512VL-NEXT: vpcmpeqw %ymm3, %ymm0, %ymm0
-; AVX512VL-NEXT: vpternlogq $202, %ymm2, %ymm1, %ymm0
+; AVX512VL-NEXT: vpternlogq {{.*#+}} ymm0 = ymm2 ^ (ymm0 & (ymm1 ^ ymm2))
; AVX512VL-NEXT: retq
;
; XOP-LABEL: blend_splat1_mask_cond_v16i16:
@@ -654,7 +654,7 @@ define <16 x i8> @blend_splat1_mask_cond_v16i8(<16 x i8> %x, <16 x i8> %y, <16 x
; AVX512VL-NEXT: vpandd {{\.?LCPI[0-9]+_[0-9]+}}(%rip){1to4}, %xmm0, %xmm0
; AVX512VL-NEXT: vpxor %xmm3, %xmm3, %xmm3
; AVX512VL-NEXT: vpcmpeqb %xmm3, %xmm0, %xmm0
-; AVX512VL-NEXT: vpternlogq $202, %xmm2, %xmm1, %xmm0
+; AVX512VL-NEXT: vpternlogq {{.*#+}} xmm0 = xmm2 ^ (xmm0 & (xmm1 ^ xmm2))
; AVX512VL-NEXT: retq
;
; XOP-LABEL: blend_splat1_mask_cond_v16i8:
@@ -759,7 +759,7 @@ define <8 x i16> @blend_splatmax_mask_cond_v8i16(<8 x i16> %x, <8 x i16> %y, <8
; AVX512VL-NEXT: vpandd {{\.?LCPI[0-9]+_[0-9]+}}(%rip){1to4}, %xmm0, %xmm0
; AVX512VL-NEXT: vpxor %xmm3, %xmm3, %xmm3
; AVX512VL-NEXT: vpcmpeqw %xmm3, %xmm0, %xmm0
-; AVX512VL-NEXT: vpternlogq $202, %xmm2, %xmm1, %xmm0
+; AVX512VL-NEXT: vpternlogq {{.*#+}} xmm0 = xmm2 ^ (xmm0 & (xmm1 ^ xmm2))
; AVX512VL-NEXT: retq
;
; XOP-LABEL: blend_splatmax_mask_cond_v8i16:
@@ -806,7 +806,7 @@ define <32 x i8> @blend_splatmax_mask_cond_v32i8(<32 x i8> %x, <32 x i8> %y, <32
; AVX512VL-NEXT: vpandd {{\.?LCPI[0-9]+_[0-9]+}}(%rip){1to8}, %ymm0, %ymm0
; AVX512VL-NEXT: vpxor %xmm3, %xmm3, %xmm3
; AVX512VL-NEXT: vpcmpeqb %ymm3, %ymm0, %ymm0
-; AVX512VL-NEXT: vpternlogq $202, %ymm2, %ymm1, %ymm0
+; AVX512VL-NEXT: vpternlogq {{.*#+}} ymm0 = ymm2 ^ (ymm0 & (ymm1 ^ ymm2))
; AVX512VL-NEXT: retq
;
; XOP-LABEL: blend_splatmax_mask_cond_v32i8:
@@ -944,7 +944,7 @@ define <16 x i16> @blend_splat_mask_cond_v16i16(<16 x i16> %x, <16 x i16> %y, <1
; AVX512VL-NEXT: vpandd {{\.?LCPI[0-9]+_[0-9]+}}(%rip){1to8}, %ymm0, %ymm0
; AVX512VL-NEXT: vpxor %xmm3, %xmm3, %xmm3
; AVX512VL-NEXT: vpcmpeqw %ymm3, %ymm0, %ymm0
-; AVX512VL-NEXT: vpternlogq $202, %ymm2, %ymm1, %ymm0
+; AVX512VL-NEXT: vpternlogq {{.*#+}} ymm0 = ymm2 ^ (ymm0 & (ymm1 ^ ymm2))
; AVX512VL-NEXT: retq
;
; XOP-LABEL: blend_splat_mask_cond_v16i16:
@@ -983,7 +983,7 @@ define <16 x i8> @blend_splat_mask_cond_v16i8(<16 x i8> %x, <16 x i8> %y, <16 x
; AVX512VL-NEXT: vpandd {{\.?LCPI[0-9]+_[0-9]+}}(%rip){1to4}, %xmm0, %xmm0
; AVX512VL-NEXT: vpxor %xmm3, %xmm3, %xmm3
; AVX512VL-NEXT: vpcmpeqb %xmm3, %xmm0, %xmm0
-; AVX512VL-NEXT: vpternlogq $202, %xmm2, %xmm1, %xmm0
+; AVX512VL-NEXT: vpternlogq {{.*#+}} xmm0 = xmm2 ^ (xmm0 & (xmm1 ^ xmm2))
; AVX512VL-NEXT: retq
;
; XOP-LABEL: blend_splat_mask_cond_v16i8:
@@ -1107,7 +1107,7 @@ define <8 x i16> @blend_mask_cond_v8i16(<8 x i16> %x, <8 x i16> %y, <8 x i16> %z
; AVX512VL-NEXT: vpand {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm0, %xmm0
; AVX512VL-NEXT: vpxor %xmm3, %xmm3, %xmm3
; AVX512VL-NEXT: vpcmpeqw %xmm3, %xmm0, %xmm0
-; AVX512VL-NEXT: vpternlogq $202, %xmm2, %xmm1, %xmm0
+; AVX512VL-NEXT: vpternlogq {{.*#+}} xmm0 = xmm2 ^ (xmm0 & (xmm1 ^ xmm2))
; AVX512VL-NEXT: retq
;
; XOP-LABEL: blend_mask_cond_v8i16:
@@ -1145,7 +1145,7 @@ define <16 x i8> @blend_mask_cond_v16i8(<16 x i8> %x, <16 x i8> %y, <16 x i8> %z
; AVX512VL-NEXT: vpand {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm0, %xmm0
; AVX512VL-NEXT: vpxor %xmm3, %xmm3, %xmm3
; AVX512VL-NEXT: vpcmpeqb %xmm3, %xmm0, %xmm0
-; AVX512VL-NEXT: vpternlogq $202, %xmm2, %xmm1, %xmm0
+; AVX512VL-NEXT: vpternlogq {{.*#+}} xmm0 = xmm2 ^ (xmm0 & (xmm1 ^ xmm2))
; AVX512VL-NEXT: retq
;
; XOP-LABEL: blend_mask_cond_v16i8:
@@ -1290,7 +1290,7 @@ define <16 x i16> @blend_mask_cond_v16i16(<16 x i16> %x, <16 x i16> %y, <16 x i1
; AVX512VL-NEXT: vpand {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %ymm0, %ymm0
; AVX512VL-NEXT: vpxor %xmm3, %xmm3, %xmm3
; AVX512VL-NEXT: vpcmpeqw %ymm3, %ymm0, %ymm0
-; AVX512VL-NEXT: vpternlogq $202, %ymm2, %ymm1, %ymm0
+; AVX512VL-NEXT: vpternlogq {{.*#+}} ymm0 = ymm2 ^ (ymm0 & (ymm1 ^ ymm2))
; AVX512VL-NEXT: retq
;
; XOP-LABEL: blend_mask_cond_v16i16:
@@ -1345,7 +1345,7 @@ define <32 x i8> @blend_mask_cond_v32i8(<32 x i8> %x, <32 x i8> %y, <32 x i8> %z
; AVX512VL-NEXT: vpand {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %ymm0, %ymm0
; AVX512VL-NEXT: vpxor %xmm3, %xmm3, %xmm3
; AVX512VL-NEXT: vpcmpeqb %ymm3, %ymm0, %ymm0
-; AVX512VL-NEXT: vpternlogq $202, %ymm2, %ymm1, %ymm0
+; AVX512VL-NEXT: vpternlogq {{.*#+}} ymm0 = ymm2 ^ (ymm0 & (ymm1 ^ ymm2))
; AVX512VL-NEXT: retq
;
; XOP-LABEL: blend_mask_cond_v32i8:
@@ -1548,7 +1548,7 @@ define void @store_blend_load_v16i16(ptr %a0, ptr %a1, ptr %a2) {
; AVX512VL-NEXT: vmovdqa (%rdi), %ymm0
; AVX512VL-NEXT: vpmaxuw {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %ymm0, %ymm1
; AVX512VL-NEXT: vpcmpeqw %ymm1, %ymm0, %ymm1
-; AVX512VL-NEXT: vpternlogq $202, (%rsi), %ymm0, %ymm1
+; AVX512VL-NEXT: vpternlogq {{.*#+}} ymm1 = mem ^ (ymm1 & (ymm0 ^ mem))
; AVX512VL-NEXT: vmovdqa %ymm1, (%rdx)
; AVX512VL-NEXT: vzeroupper
; AVX512VL-NEXT: retq
@@ -1617,7 +1617,7 @@ define void @store_blend_load_v32i8(ptr %a0, ptr %a1, ptr %a2) {
; AVX512VL-NEXT: vmovdqa (%rdi), %ymm0
; AVX512VL-NEXT: vpmaxub {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %ymm0, %ymm1
; AVX512VL-NEXT: vpcmpeqb %ymm1, %ymm0, %ymm1
-; AVX512VL-NEXT: vpternlogq $202, (%rsi), %ymm0, %ymm1
+; AVX512VL-NEXT: vpternlogq {{.*#+}} ymm1 = mem ^ (ymm1 & (ymm0 ^ mem))
; AVX512VL-NEXT: vmovdqa %ymm1, (%rdx)
; AVX512VL-NEXT: vzeroupper
; AVX512VL-NEXT: retq
More information about the llvm-commits
mailing list