Skip to content

Commit

Permalink
cmd/compile: shift tests, fix triple-shift rules
Browse files Browse the repository at this point in the history
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
randall77 committed May 29, 2016
1 parent 79f7ccf commit 1739657
Show file tree
Hide file tree
Showing 3 changed files with 1,588 additions and 105 deletions.
Loading

0 comments on commit 1739657

Please sign in to comment.