aboutsummaryrefslogtreecommitdiff
path: root/src/bytes/buffer_test.go
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2020-02-26 03:58:59 +1100
committerJoel Sing <joel@sing.id.au>2020-02-26 17:59:57 +0000
commitc27dd0c9e581edb71c834e161db6a920ca239997 (patch)
tree8aec1a1484bf4c31e853a7c2db9f5a3b80c4f8f9 /src/bytes/buffer_test.go
parenta1103dcc27b9c85800624367ebb89ef46d4307af (diff)
downloadgo-c27dd0c9e581edb71c834e161db6a920ca239997.tar.xz
cmd/compile: improve Eq32/Neq32 on riscv64
Use SUBW to perform a 32-bit subtraction, rather than zero extending from 32 to 64 bits. This reduces Eq32 and Neq32 to two instructions, rather than the four instructions required previously. Change-Id: Ib2798324881e9db842c864e91a0c1b1e48c4b67b Reviewed-on: https://go-review.googlesource.com/c/go/+/220921 Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/bytes/buffer_test.go')
0 files changed, 0 insertions, 0 deletions