1
0
mirror of https://github.com/golang/go synced 2024-10-05 18:21:21 -06:00
go/src/cmd
Keith Randall 4b803151ce [dev.ssa] cmd/compile/internal/ssa: fix shift operations
Convert shift ops to also encode the size of the shift amount.

Change signed right shift from using CMOV to using bit twiddles.
It is a little bit better (5 instructions instead of 4, but fewer
bytes and slightly faster code).  It's also a bit faster than
the 4-instruction branch version, even with a very predictable
branch.  As tested on my machine, YMMV.

Implement OCOM while we are here.

Change-Id: I8ca12dd62fae5d626dc0e6da5d4bbd34fd9640d2
Reviewed-on: https://go-review.googlesource.com/12867
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
2015-07-30 17:57:12 +00:00
..
addr2line
api
asm cmd/asm: add tests for erroneous expressions 2015-06-26 23:33:39 +00:00
cgo cmd/cgo: fix a problem with 'go build -compiler gccgo' 2015-06-29 15:15:59 +00:00
compile [dev.ssa] cmd/compile/internal/ssa: fix shift operations 2015-07-30 17:57:12 +00:00
cover
dist [dev.ssa] Merge remote-tracking branch 'origin/master' into ssamerge 2015-06-30 21:11:33 -07:00
doc
fix
go cmd/go: use GOOS and GOARCH from build context for "go generate" 2015-06-30 06:52:47 +00:00
gofmt
internal [dev.ssa] Merge remote-tracking branch 'origin/master' into ssamerge 2015-06-30 21:11:33 -07:00
link cmd/link: reject data size > 2 GB 2015-06-30 19:40:39 +00:00
newlink
nm
objdump
old5a
old6a
old8a
old9a
pack
pprof
trace cmd/trace: sort procs 2015-06-30 16:50:57 +00:00
vet
yacc