Skip to content

Commit

Permalink
[X86] Regenerate test checks (NFC)
Browse files Browse the repository at this point in the history
Regenerate some tests for the new vpternlog printing.
  • Loading branch information
nikic committed Jan 23, 2025
1 parent 6206f54 commit c3b40c7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions llvm/test/CodeGen/X86/uadd_sat_vec.ll
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ define <2 x i32> @v2i32(<2 x i32> %x, <2 x i32> %y) nounwind {
; AVX512F: # %bb.0:
; AVX512F-NEXT: # kill: def $xmm1 killed $xmm1 def $zmm1
; AVX512F-NEXT: vmovdqa64 %zmm1, %zmm2
; AVX512F-NEXT: vpternlogq $15, %zmm1, %zmm1, %zmm2
; AVX512F-NEXT: vpternlogq {{.*#+}} zmm2 = ~zmm2
; AVX512F-NEXT: vpminud %xmm2, %xmm0, %xmm0
; AVX512F-NEXT: vpaddd %xmm1, %xmm0, %xmm0
; AVX512F-NEXT: vzeroupper
Expand All @@ -596,7 +596,7 @@ define <2 x i32> @v2i32(<2 x i32> %x, <2 x i32> %y) nounwind {
; AVX512BW-LABEL: v2i32:
; AVX512BW: # %bb.0:
; AVX512BW-NEXT: vmovdqa %xmm1, %xmm2
; AVX512BW-NEXT: vpternlogq $15, %xmm1, %xmm1, %xmm2
; AVX512BW-NEXT: vpternlogq {{.*#+}} xmm2 = ~xmm2
; AVX512BW-NEXT: vpminud %xmm2, %xmm0, %xmm0
; AVX512BW-NEXT: vpaddd %xmm1, %xmm0, %xmm0
; AVX512BW-NEXT: retq
Expand Down Expand Up @@ -655,7 +655,7 @@ define <4 x i32> @v4i32(<4 x i32> %x, <4 x i32> %y) nounwind {
; AVX512F: # %bb.0:
; AVX512F-NEXT: # kill: def $xmm1 killed $xmm1 def $zmm1
; AVX512F-NEXT: vmovdqa64 %zmm1, %zmm2
; AVX512F-NEXT: vpternlogq $15, %zmm1, %zmm1, %zmm2
; AVX512F-NEXT: vpternlogq {{.*#+}} zmm2 = ~zmm2
; AVX512F-NEXT: vpminud %xmm2, %xmm0, %xmm0
; AVX512F-NEXT: vpaddd %xmm1, %xmm0, %xmm0
; AVX512F-NEXT: vzeroupper
Expand All @@ -664,7 +664,7 @@ define <4 x i32> @v4i32(<4 x i32> %x, <4 x i32> %y) nounwind {
; AVX512BW-LABEL: v4i32:
; AVX512BW: # %bb.0:
; AVX512BW-NEXT: vmovdqa %xmm1, %xmm2
; AVX512BW-NEXT: vpternlogq $15, %xmm1, %xmm1, %xmm2
; AVX512BW-NEXT: vpternlogq {{.*#+}} xmm2 = ~xmm2
; AVX512BW-NEXT: vpminud %xmm2, %xmm0, %xmm0
; AVX512BW-NEXT: vpaddd %xmm1, %xmm0, %xmm0
; AVX512BW-NEXT: retq
Expand Down Expand Up @@ -747,15 +747,15 @@ define <8 x i32> @v8i32(<8 x i32> %x, <8 x i32> %y) nounwind {
; AVX512F: # %bb.0:
; AVX512F-NEXT: # kill: def $ymm1 killed $ymm1 def $zmm1
; AVX512F-NEXT: vmovdqa64 %zmm1, %zmm2
; AVX512F-NEXT: vpternlogq $15, %zmm1, %zmm1, %zmm2
; AVX512F-NEXT: vpternlogq {{.*#+}} zmm2 = ~zmm2
; AVX512F-NEXT: vpminud %ymm2, %ymm0, %ymm0
; AVX512F-NEXT: vpaddd %ymm1, %ymm0, %ymm0
; AVX512F-NEXT: retq
;
; AVX512BW-LABEL: v8i32:
; AVX512BW: # %bb.0:
; AVX512BW-NEXT: vmovdqa %ymm1, %ymm2
; AVX512BW-NEXT: vpternlogq $15, %ymm1, %ymm1, %ymm2
; AVX512BW-NEXT: vpternlogq {{.*#+}} ymm2 = ~ymm2
; AVX512BW-NEXT: vpminud %ymm2, %ymm0, %ymm0
; AVX512BW-NEXT: vpaddd %ymm1, %ymm0, %ymm0
; AVX512BW-NEXT: retq
Expand Down Expand Up @@ -885,7 +885,7 @@ define <16 x i32> @v16i32(<16 x i32> %x, <16 x i32> %y) nounwind {
; AVX512-LABEL: v16i32:
; AVX512: # %bb.0:
; AVX512-NEXT: vmovdqa64 %zmm1, %zmm2
; AVX512-NEXT: vpternlogq $15, %zmm1, %zmm1, %zmm2
; AVX512-NEXT: vpternlogq {{.*#+}} zmm2 = ~zmm2
; AVX512-NEXT: vpminud %zmm2, %zmm0, %zmm0
; AVX512-NEXT: vpaddd %zmm1, %zmm0, %zmm0
; AVX512-NEXT: retq
Expand Down Expand Up @@ -938,7 +938,7 @@ define <2 x i64> @v2i64(<2 x i64> %x, <2 x i64> %y) nounwind {
; AVX512F-NEXT: # kill: def $xmm1 killed $xmm1 def $zmm1
; AVX512F-NEXT: # kill: def $xmm0 killed $xmm0 def $zmm0
; AVX512F-NEXT: vmovdqa64 %zmm1, %zmm2
; AVX512F-NEXT: vpternlogq $15, %zmm1, %zmm1, %zmm2
; AVX512F-NEXT: vpternlogq {{.*#+}} zmm2 = ~zmm2
; AVX512F-NEXT: vpminuq %zmm2, %zmm0, %zmm0
; AVX512F-NEXT: vpaddq %xmm1, %xmm0, %xmm0
; AVX512F-NEXT: vzeroupper
Expand All @@ -947,7 +947,7 @@ define <2 x i64> @v2i64(<2 x i64> %x, <2 x i64> %y) nounwind {
; AVX512BW-LABEL: v2i64:
; AVX512BW: # %bb.0:
; AVX512BW-NEXT: vmovdqa %xmm1, %xmm2
; AVX512BW-NEXT: vpternlogq $15, %xmm1, %xmm1, %xmm2
; AVX512BW-NEXT: vpternlogq {{.*#+}} xmm2 = ~xmm2
; AVX512BW-NEXT: vpminuq %xmm2, %xmm0, %xmm0
; AVX512BW-NEXT: vpaddq %xmm1, %xmm0, %xmm0
; AVX512BW-NEXT: retq
Expand Down Expand Up @@ -1022,15 +1022,15 @@ define <4 x i64> @v4i64(<4 x i64> %x, <4 x i64> %y) nounwind {
; AVX512F-NEXT: # kill: def $ymm1 killed $ymm1 def $zmm1
; AVX512F-NEXT: # kill: def $ymm0 killed $ymm0 def $zmm0
; AVX512F-NEXT: vmovdqa64 %zmm1, %zmm2
; AVX512F-NEXT: vpternlogq $15, %zmm1, %zmm1, %zmm2
; AVX512F-NEXT: vpternlogq {{.*#+}} zmm2 = ~zmm2
; AVX512F-NEXT: vpminuq %zmm2, %zmm0, %zmm0
; AVX512F-NEXT: vpaddq %ymm1, %ymm0, %ymm0
; AVX512F-NEXT: retq
;
; AVX512BW-LABEL: v4i64:
; AVX512BW: # %bb.0:
; AVX512BW-NEXT: vmovdqa %ymm1, %ymm2
; AVX512BW-NEXT: vpternlogq $15, %ymm1, %ymm1, %ymm2
; AVX512BW-NEXT: vpternlogq {{.*#+}} ymm2 = ~ymm2
; AVX512BW-NEXT: vpminuq %ymm2, %ymm0, %ymm0
; AVX512BW-NEXT: vpaddq %ymm1, %ymm0, %ymm0
; AVX512BW-NEXT: retq
Expand Down Expand Up @@ -1149,7 +1149,7 @@ define <8 x i64> @v8i64(<8 x i64> %x, <8 x i64> %y) nounwind {
; AVX512-LABEL: v8i64:
; AVX512: # %bb.0:
; AVX512-NEXT: vmovdqa64 %zmm1, %zmm2
; AVX512-NEXT: vpternlogq $15, %zmm1, %zmm1, %zmm2
; AVX512-NEXT: vpternlogq {{.*#+}} zmm2 = ~zmm2
; AVX512-NEXT: vpminuq %zmm2, %zmm0, %zmm0
; AVX512-NEXT: vpaddq %zmm1, %zmm0, %zmm0
; AVX512-NEXT: retq
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/CodeGen/X86/usub_sat_vec.ll
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ define <16 x i1> @v16i1(<16 x i1> %x, <16 x i1> %y) nounwind {
;
; AVX512BW-LABEL: v16i1:
; AVX512BW: # %bb.0:
; AVX512BW-NEXT: vpternlogd $96, {{\.?LCPI[0-9]+_[0-9]+}}(%rip){1to4}, %xmm1, %xmm0
; AVX512BW-NEXT: vpternlogd {{.*#+}} xmm0 = xmm0 & (xmm1 ^ mem)
; AVX512BW-NEXT: retq
%z = call <16 x i1> @llvm.usub.sat.v16i1(<16 x i1> %x, <16 x i1> %y)
ret <16 x i1> %z
Expand Down

0 comments on commit c3b40c7

Please sign in to comment.