1
0
mirror of https://github.com/golang/go synced 2024-11-14 20:50:30 -07:00
go/src/cmd
David Chase 9d5987d79f cmd/compile: rewrite upper-bit-clear idiom to use shift-rotate
Old buggy hardware incorrectly executes the shift-left-K
then shift-right-K idiom for clearing K leftmost bits.
Use a right rotate instead of shift to avoid triggering the
bug.

Fixes #19809.

Change-Id: I6dc646b183c29e9d01aef944729f34388dcc687d
Reviewed-on: https://go-review.googlesource.com/39310
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
2017-04-03 17:16:23 +00:00
..
addr2line cmd/go: build test binaries with -s in addition to -w 2017-03-29 17:18:16 +00:00
api
asm cmd/asm/internal/arch: use generic obj.Rconv function everywhere 2017-03-31 04:29:58 +00:00
cgo
compile cmd/compile: rewrite upper-bit-clear idiom to use shift-rotate 2017-04-03 17:16:23 +00:00
cover
dist cmd/go: add -json flag to go env 2017-03-29 06:50:07 +00:00
doc cmd/doc: implement "go doc struct.field" 2017-03-22 05:37:50 +00:00
fix cmd/fix,cmd/gofmt: flush to disk before diffing 2017-03-30 18:19:57 +00:00
go cmd/go: exclude vendored packages from ... matches 2017-03-29 18:51:44 +00:00
gofmt cmd/fix,cmd/gofmt: flush to disk before diffing 2017-03-30 18:19:57 +00:00
internal cmd/internal/obj: use string instead of LSym in Pcln 2017-04-03 15:19:47 +00:00
link cmd/link: canonicalize the "package" of dupok text symbols 2017-04-02 03:25:02 +00:00
nm all: fix some printf format strings 2017-02-14 02:09:30 +00:00
objdump cmd/objdump: make test independent of inlining 2017-02-19 21:27:16 +00:00
pack
pprof cmd/pprof: use proxy from environment 2017-03-19 05:45:51 +00:00
trace cmd/trace: traces may end with pending mark assists 2017-03-02 18:33:54 +00:00
vendor cmd/vendor/github.com/google/pprof: refresh from upstream 2017-03-01 21:36:03 +00:00
vet cmd/vet: remove Peek from list of canonical methods 2017-03-27 23:36:36 +00:00