]> Cypherpunks.ru repositories - gostls13.git/commit
all: clean up addition of constants in riscv64 assembly
authorJoel Sing <joel@sing.id.au>
Fri, 25 Aug 2023 18:42:50 +0000 (04:42 +1000)
committerJoel Sing <joel@sing.id.au>
Thu, 9 Nov 2023 13:57:06 +0000 (13:57 +0000)
commitc1a48694530afcf9e378a234de493f9f6de6a364
tree64ea392a13685edb460f61883c937c7d307f69c3
parente816eb50140841c524fd07ecb4eaa078954eb47c
all: clean up addition of constants in riscv64 assembly

Use ADD with constants, instead of ADDI. Also use SUB with a positive constant
rather than ADD with a negative constant. The resulting assembly is still the
same.

Change-Id: Ife10bf5ae4122e525f0e7d41b5e463e748236a9c
Reviewed-on: https://go-review.googlesource.com/c/go/+/540136
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: M Zhuo <mzh@golangcn.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Mark Ryan <markdryan@rivosinc.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Run-TryBot: Joel Sing <joel@sing.id.au>
src/crypto/internal/bigmod/nat_riscv64.s
src/internal/bytealg/compare_riscv64.s
src/internal/bytealg/equal_riscv64.s
src/internal/bytealg/indexbyte_riscv64.s
src/runtime/asm_riscv64.s
src/runtime/memclr_riscv64.s
src/runtime/memmove_riscv64.s
src/runtime/mkpreempt.go
src/runtime/preempt_riscv64.s
src/runtime/sys_linux_riscv64.s