Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/compile: shift tests, fix triple-shift rules
Add a bunch of tests for shifts. Fix triple-shift rules to always take constant shifts as 64 bits. (Earlier rules always promote shift amounts to 64 bits.) Add overflow checks. Increases generic rule coverage to 91% Change-Id: I6b42d368d19d36ac482dbb8e0d4f67e30ad7145d Reviewed-on: https://go-review.googlesource.com/23555 Reviewed-by: Todd Neal <[email protected]>
- Loading branch information