[llvm] e5054fb - [X86][test] Update CodeGen/X86/popcnt.ll after #78545
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 30 02:38:33 PST 2024
Author: Shengchen Kan
Date: 2024-01-30T18:38:16+08:00
New Revision: e5054fb5c660cb81d1f96498e39662914a92a167
URL: https://github.com/llvm/llvm-project/commit/e5054fb5c660cb81d1f96498e39662914a92a167
DIFF: https://github.com/llvm/llvm-project/commit/e5054fb5c660cb81d1f96498e39662914a92a167.diff
LOG: [X86][test] Update CodeGen/X86/popcnt.ll after #78545
Added:
Modified:
llvm/test/CodeGen/X86/popcnt.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/X86/popcnt.ll b/llvm/test/CodeGen/X86/popcnt.ll
index 2d780370a110..a9d77fd2c0a6 100644
--- a/llvm/test/CodeGen/X86/popcnt.ll
+++ b/llvm/test/CodeGen/X86/popcnt.ll
@@ -59,7 +59,7 @@ define i8 @cnt8(i8 %x) nounwind readnone {
;
; X64-NDD-LABEL: cnt8:
; X64-NDD: # %bb.0:
-; X64-NDD-NEXT: shrb $1, %dil, %al
+; X64-NDD-NEXT: shrb %dil, %al
; X64-NDD-NEXT: andb $85, %al
; X64-NDD-NEXT: subb %al, %dil, %al
; X64-NDD-NEXT: andb $51, %al, %cl
@@ -136,7 +136,7 @@ define i16 @cnt16(i16 %x) nounwind readnone {
;
; X64-NDD-LABEL: cnt16:
; X64-NDD: # %bb.0:
-; X64-NDD-NEXT: shrl $1, %edi, %eax
+; X64-NDD-NEXT: shrl %edi, %eax
; X64-NDD-NEXT: andl $21845, %eax # imm = 0x5555
; X64-NDD-NEXT: subl %eax, %edi, %eax
; X64-NDD-NEXT: andl $13107, %eax, %ecx # imm = 0x3333
@@ -207,7 +207,7 @@ define i32 @cnt32(i32 %x) nounwind readnone {
;
; X64-NDD-LABEL: cnt32:
; X64-NDD: # %bb.0:
-; X64-NDD-NEXT: shrl $1, %edi, %eax
+; X64-NDD-NEXT: shrl %edi, %eax
; X64-NDD-NEXT: andl $1431655765, %eax # imm = 0x55555555
; X64-NDD-NEXT: subl %eax, %edi, %eax
; X64-NDD-NEXT: andl $858993459, %eax, %ecx # imm = 0x33333333
@@ -301,7 +301,7 @@ define i64 @cnt64(i64 %x) nounwind readnone {
;
; X64-NDD-LABEL: cnt64:
; X64-NDD: # %bb.0:
-; X64-NDD-NEXT: shrq $1, %rdi, %rax
+; X64-NDD-NEXT: shrq %rdi, %rax
; X64-NDD-NEXT: movabsq $6148914691236517205, %rcx # imm = 0x5555555555555555
; X64-NDD-NEXT: andq %rcx, %rax
; X64-NDD-NEXT: subq %rax, %rdi, %rax
@@ -515,7 +515,7 @@ define i128 @cnt128(i128 %x) nounwind readnone {
;
; X64-NDD-LABEL: cnt128:
; X64-NDD: # %bb.0:
-; X64-NDD-NEXT: shrq $1, %rsi, %rax
+; X64-NDD-NEXT: shrq %rsi, %rax
; X64-NDD-NEXT: movabsq $6148914691236517205, %rcx # imm = 0x5555555555555555
; X64-NDD-NEXT: andq %rcx, %rax
; X64-NDD-NEXT: subq %rax, %rsi, %rax
@@ -531,7 +531,7 @@ define i128 @cnt128(i128 %x) nounwind readnone {
; X64-NDD-NEXT: movabsq $72340172838076673, %r8 # imm = 0x101010101010101
; X64-NDD-NEXT: imulq %r8, %rax
; X64-NDD-NEXT: shrq $56, %rax
-; X64-NDD-NEXT: shrq $1, %rdi, %r9
+; X64-NDD-NEXT: shrq %rdi, %r9
; X64-NDD-NEXT: andq %r9, %rcx
; X64-NDD-NEXT: subq %rcx, %rdi, %rcx
; X64-NDD-NEXT: andq %rdx, %rcx, %rdi
@@ -709,7 +709,7 @@ define i64 @cnt64_noimplicitfloat(i64 %x) nounwind readnone noimplicitfloat {
;
; X64-NDD-LABEL: cnt64_noimplicitfloat:
; X64-NDD: # %bb.0:
-; X64-NDD-NEXT: shrq $1, %rdi, %rax
+; X64-NDD-NEXT: shrq %rdi, %rax
; X64-NDD-NEXT: movabsq $6148914691236517205, %rcx # imm = 0x5555555555555555
; X64-NDD-NEXT: andq %rcx, %rax
; X64-NDD-NEXT: subq %rax, %rdi, %rax
@@ -784,7 +784,7 @@ define i32 @cnt32_optsize(i32 %x) nounwind readnone optsize {
;
; X64-NDD-LABEL: cnt32_optsize:
; X64-NDD: # %bb.0:
-; X64-NDD-NEXT: shrl $1, %edi, %eax
+; X64-NDD-NEXT: shrl %edi, %eax
; X64-NDD-NEXT: andl $1431655765, %eax # imm = 0x55555555
; X64-NDD-NEXT: subl %eax, %edi, %eax
; X64-NDD-NEXT: movl $858993459, %ecx # imm = 0x33333333
@@ -888,7 +888,7 @@ define i64 @cnt64_optsize(i64 %x) nounwind readnone optsize {
;
; X64-NDD-LABEL: cnt64_optsize:
; X64-NDD: # %bb.0:
-; X64-NDD-NEXT: shrq $1, %rdi, %rax
+; X64-NDD-NEXT: shrq %rdi, %rax
; X64-NDD-NEXT: movabsq $6148914691236517205, %rcx # imm = 0x5555555555555555
; X64-NDD-NEXT: andq %rcx, %rax
; X64-NDD-NEXT: subq %rax, %rdi, %rax
@@ -1111,7 +1111,7 @@ define i128 @cnt128_optsize(i128 %x) nounwind readnone optsize {
;
; X64-NDD-LABEL: cnt128_optsize:
; X64-NDD: # %bb.0:
-; X64-NDD-NEXT: shrq $1, %rsi, %rax
+; X64-NDD-NEXT: shrq %rsi, %rax
; X64-NDD-NEXT: movabsq $6148914691236517205, %rcx # imm = 0x5555555555555555
; X64-NDD-NEXT: andq %rcx, %rax
; X64-NDD-NEXT: subq %rax, %rsi, %rax
@@ -1127,7 +1127,7 @@ define i128 @cnt128_optsize(i128 %x) nounwind readnone optsize {
; X64-NDD-NEXT: movabsq $72340172838076673, %r8 # imm = 0x101010101010101
; X64-NDD-NEXT: imulq %r8, %rax
; X64-NDD-NEXT: shrq $56, %rax
-; X64-NDD-NEXT: shrq $1, %rdi, %r9
+; X64-NDD-NEXT: shrq %rdi, %r9
; X64-NDD-NEXT: andq %r9, %rcx
; X64-NDD-NEXT: subq %rcx, %rdi, %rcx
; X64-NDD-NEXT: andq %rdx, %rcx, %rdi
@@ -1282,7 +1282,7 @@ define i32 @cnt32_pgso(i32 %x) nounwind readnone !prof !14 {
;
; X64-NDD-LABEL: cnt32_pgso:
; X64-NDD: # %bb.0:
-; X64-NDD-NEXT: shrl $1, %edi, %eax
+; X64-NDD-NEXT: shrl %edi, %eax
; X64-NDD-NEXT: andl $1431655765, %eax # imm = 0x55555555
; X64-NDD-NEXT: subl %eax, %edi, %eax
; X64-NDD-NEXT: andl $858993459, %eax, %ecx # imm = 0x33333333
@@ -1376,7 +1376,7 @@ define i64 @cnt64_pgso(i64 %x) nounwind readnone !prof !14 {
;
; X64-NDD-LABEL: cnt64_pgso:
; X64-NDD: # %bb.0:
-; X64-NDD-NEXT: shrq $1, %rdi, %rax
+; X64-NDD-NEXT: shrq %rdi, %rax
; X64-NDD-NEXT: movabsq $6148914691236517205, %rcx # imm = 0x5555555555555555
; X64-NDD-NEXT: andq %rcx, %rax
; X64-NDD-NEXT: subq %rax, %rdi, %rax
@@ -1592,7 +1592,7 @@ define i128 @cnt128_pgso(i128 %x) nounwind readnone !prof !14 {
;
; X64-NDD-LABEL: cnt128_pgso:
; X64-NDD: # %bb.0:
-; X64-NDD-NEXT: shrq $1, %rsi, %rax
+; X64-NDD-NEXT: shrq %rsi, %rax
; X64-NDD-NEXT: movabsq $6148914691236517205, %rcx # imm = 0x5555555555555555
; X64-NDD-NEXT: andq %rcx, %rax
; X64-NDD-NEXT: subq %rax, %rsi, %rax
@@ -1608,7 +1608,7 @@ define i128 @cnt128_pgso(i128 %x) nounwind readnone !prof !14 {
; X64-NDD-NEXT: movabsq $72340172838076673, %r8 # imm = 0x101010101010101
; X64-NDD-NEXT: imulq %r8, %rax
; X64-NDD-NEXT: shrq $56, %rax
-; X64-NDD-NEXT: shrq $1, %rdi, %r9
+; X64-NDD-NEXT: shrq %rdi, %r9
; X64-NDD-NEXT: andq %r9, %rcx
; X64-NDD-NEXT: subq %rcx, %rdi, %rcx
; X64-NDD-NEXT: andq %rdx, %rcx, %rdi
@@ -1764,7 +1764,7 @@ define i32 @popcount_zext_i32(i16 zeroext %x) {
;
; X64-NDD-LABEL: popcount_zext_i32:
; X64-NDD: # %bb.0:
-; X64-NDD-NEXT: shrl $1, %edi, %eax
+; X64-NDD-NEXT: shrl %edi, %eax
; X64-NDD-NEXT: andl $21845, %eax # imm = 0x5555
; X64-NDD-NEXT: subl %eax, %edi, %eax
; X64-NDD-NEXT: andl $858993459, %eax, %ecx # imm = 0x33333333
@@ -1839,7 +1839,7 @@ define i32 @popcount_i16_zext(i16 zeroext %x) {
;
; X64-NDD-LABEL: popcount_i16_zext:
; X64-NDD: # %bb.0:
-; X64-NDD-NEXT: shrl $1, %edi, %eax
+; X64-NDD-NEXT: shrl %edi, %eax
; X64-NDD-NEXT: andl $21845, %eax # imm = 0x5555
; X64-NDD-NEXT: subl %eax, %edi, %eax
; X64-NDD-NEXT: andl $13107, %eax, %ecx # imm = 0x3333
More information about the llvm-commits
mailing list