Keith Randall
|
1739657513
|
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 <todd@tneal.org>
|
2016-05-29 20:36:21 +00:00 |
|