]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: Add shiftIsBounded check for logic shifts of arm64
authorruinan <ruinan.sun@arm.com>
Fri, 1 Jul 2022 06:25:12 +0000 (06:25 +0000)
committerKeith Randall <khr@google.com>
Wed, 7 Sep 2022 20:10:13 +0000 (20:10 +0000)
commit454a058ffcd90dc8db311c08747506186af1f952
tree1576158ab756dbedd907285a76c2d06368873aa7
parente828fbdffe3318b976aa12d2aee27d4a53bc9f12
cmd/compile: Add shiftIsBounded check for logic shifts of arm64

This CL adds shiftIsBounded checks for the Lsh* and Rsh* rules in arm64.
There is no need to check the shift value again with CMP + CSEL when the
shift value is valid.

Change-Id: I54620de64f02a1b5a11089add237248ae2de01b4
Reviewed-on: https://go-review.googlesource.com/c/go/+/417714
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
src/cmd/compile/internal/ssa/gen/ARM64.rules
src/cmd/compile/internal/ssa/rewriteARM64.go
test/codegen/shift.go