diff options
| author | Joel Sing <joel@sing.id.au> | 2020-02-26 03:58:59 +1100 |
|---|---|---|
| committer | Joel Sing <joel@sing.id.au> | 2020-02-26 17:59:57 +0000 |
| commit | c27dd0c9e581edb71c834e161db6a920ca239997 (patch) | |
| tree | 8aec1a1484bf4c31e853a7c2db9f5a3b80c4f8f9 /src/bytes/buffer_test.go | |
| parent | a1103dcc27b9c85800624367ebb89ef46d4307af (diff) | |
| download | go-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
