aboutsummaryrefslogtreecommitdiff
path: root/test/codegen/bits.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/codegen/bits.go')
-rw-r--r--test/codegen/bits.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/codegen/bits.go b/test/codegen/bits.go
index ca9d857164..7bedaff712 100644
--- a/test/codegen/bits.go
+++ b/test/codegen/bits.go
@@ -40,8 +40,8 @@ func bitsCheckConstLeftShiftU64(a uint64) (n int) {
func bitsCheckConstRightShiftU64(a [8]uint64) (n int) {
// amd64:"BTQ [$]63,"
// arm64:"TBNZ [$]63," -"LSR"
- // loong64:"SRLV [$]63," "AND [$]1," "BNE"
- // riscv64:"SRLI [$]63," "ANDI [$]1," "BNEZ"
+ // loong64:"SRLV [$]63," "BNE"
+ // riscv64:"SRLI [$]63," "BNEZ"
if (a[0]>>63)&1 != 0 {
return 1
}
@@ -265,8 +265,8 @@ func bitsCheckConstShiftLeftU32(a uint32) (n int) {
func bitsCheckConstRightShiftU32(a [8]uint32) (n int) {
// amd64:"BTL [$]31,"
// arm64:"UBFX [$]31," "CBNZW"
- // loong64:"SRL [$]31," "AND [$]1," "BNE"
- // riscv64:"SRLIW [$]31," "ANDI [$]1," "BNEZ"
+ // loong64:"SRL [$]31," "BNE"
+ // riscv64:"SRLIW [$]31," "BNEZ"
if (a[0]>>31)&1 != 0 {
return 1
}