]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: combine masking and zero extension on riscv64
authorJoel Sing <joel@sing.id.au>
Sat, 3 Sep 2022 19:26:54 +0000 (05:26 +1000)
committerJoel Sing <joel@sing.id.au>
Tue, 11 Oct 2022 04:02:34 +0000 (04:02 +0000)
commit0ca355318f6c407edb4a82a0bb0c249ffd31840b
tree422b826db5d15a1d42c7964894224daedbd5b7fa
parentbb2a96b79df71c4b021c8611b916a2f402166d3b
cmd/compile: combine masking and zero extension on riscv64

Combine masking with a negative value and zero extension into a single
AND operation.

Change-Id: I0b2a735b696d65568839fc4504445eeac3d869a6
Reviewed-on: https://go-review.googlesource.com/c/go/+/428498
Reviewed-by: Joedian Reid <joedian@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Joel Sing <joel@sing.id.au>
src/cmd/compile/internal/ssa/_gen/RISCV64.rules
src/cmd/compile/internal/ssa/rewriteRISCV64.go