aboutsummaryrefslogtreecommitdiff
path: root/test/codegen
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2026-02-21 03:29:09 +1100
committerGopher Robot <gobot@golang.org>2026-03-06 14:39:32 -0800
commit3a29ebeef985efb12d2b8670f50b146e9a2815ca (patch)
treee08894e3c63d59cdff57ccdaf8d71cf4a0505f54 /test/codegen
parent426ea5cd22d8de6b1ed909062c624fd1e6e04757 (diff)
downloadgo-3a29ebeef985efb12d2b8670f50b146e9a2815ca.tar.xz
cmd/compile: additional optimisation for CZEROEQZ/CZERONEZ on riscv64
Negation on a condition can be eliminated. Change-Id: I94fab5f019cbaebb2ca589e1d8796a9cb72f3894 Reviewed-on: https://go-review.googlesource.com/c/go/+/748401 Reviewed-by: Xueqi Luo <1824368278@qq.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Julian Zhu <jz531210@gmail.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Keith Randall <khr@golang.org>
Diffstat (limited to 'test/codegen')
-rw-r--r--test/codegen/condmove.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/codegen/condmove.go b/test/codegen/condmove.go
index bd2d1540b4..93159d1ca4 100644
--- a/test/codegen/condmove.go
+++ b/test/codegen/condmove.go
@@ -534,6 +534,6 @@ func constantTimeSelect(v, x, y int) int {
// amd64:"CMOVQ"
// arm64:"CSEL"
// riscv64/rva20u64,riscv64/rva22u64:"SNEZ" "NEG" "AND" "OR"
- // riscv64/rva23u64:"NEG" "CZERONEZ" "CZEROEQZ" "OR" -"SNEZ" -"AND"
+ // riscv64/rva23u64:"CZERONEZ" "CZEROEQZ" "OR" -"SNEZ" -"NEG" -"AND"
return subtle.ConstantTimeSelect(v, x, y)
}