summaryrefslogtreecommitdiff
path: root/test/rotate.go
Commit message (Collapse)AuthorAgeFilesLines
* test: add rotate.go and fixedbugs/bug313R?my Oudompheng2013-01-111-10/+5
| | | | | | | | Update issue 4139. R=golang-dev, iant CC=golang-dev https://codereview.appspot.com/7094047
* test: expand run.go's errorcheck, make clear which bugs runRuss Cox2012-09-231-0/+3
| | | | | | | | | | | | | | | | Today, if run.go doesn't understand a test header line it just ignores the test, making it too easy to write or edit tests that are not actually being run. - expand errorcheck to accept flags, so that bounds.go and escape*.go can run. - create a whitelist of skippable tests in run.go; skipping others is an error. - mark all skipped tests at top of file. Update issue 4139. R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/6549054
* test: avoid interface conversion in rotate.goR?my Oudompheng2012-06-041-11/+17
| | | | | | | | | | It is not necessary for the test to be effective and uses a lot of resources in the compiler. Memory usage is halved and compilation around 8x faster. R=golang-dev, r, rsc, r CC=golang-dev http://codereview.appspot.com/6290044
* cmd/gc: recognize u<<1 op u>>31 as a rotate when op is ^, not just |.Nigel Tao2012-06-041-42/+63
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/6249071
* cmd/gc: faster code, mainly for rotateRuss Cox2012-05-241-0/+141
* Eliminate bounds check on known small shifts. * Rewrite x<<s | x>>(32-s) as a rotate (constant s). * More aggressive (but still minimal) range analysis. R=ken, dave, iant CC=golang-dev http://codereview.appspot.com/6209077