aboutsummaryrefslogtreecommitdiff
path: root/test/codegen/shift.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/codegen/shift.go')
-rw-r--r--test/codegen/shift.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/codegen/shift.go b/test/codegen/shift.go
index 02842a5739..b7819d236f 100644
--- a/test/codegen/shift.go
+++ b/test/codegen/shift.go
@@ -582,13 +582,13 @@ func checkShiftToMask(u []uint64, s []int64) {
func checkLeftShiftWithAddition(a int64, b int64) int64 {
// riscv64/rva20u64: "SLLI","ADD"
- // riscv64/rva22u64: "SH1ADD"
+ // riscv64/rva22u64,riscv64/rva23u64: "SH1ADD"
a = a + b<<1
// riscv64/rva20u64: "SLLI","ADD"
- // riscv64/rva22u64: "SH2ADD"
+ // riscv64/rva22u64,riscv64/rva23u64: "SH2ADD"
a = a + b<<2
// riscv64/rva20u64: "SLLI","ADD"
- // riscv64/rva22u64: "SH3ADD"
+ // riscv64/rva22u64,riscv64/rva23u64: "SH3ADD"
a = a + b<<3
return a
}