1
0
mirror of https://github.com/golang/go synced 2024-10-04 23:21:20 -06:00
go/src/cmd
Alexandru Moșoi d8ee180ab2 cmd/compile: fold more of CMPQ and ANDQ
g used to produce CMPQ/SBBQ/ANDQ, but f didn't even though
s&15 is at most s&63.

func f(x uint64, s uint) uint64 {
        return x >> (s & 63)
}
func g(x uint64, s uint) uint64 {
        return x >> (s & 15)
}

Change-Id: Iab4a1a6e10b471dead9f1203e9d894677cf07bb2
Reviewed-on: https://go-review.googlesource.com/21048
Run-TryBot: Alexandru Moșoi <alexandru@mosoi.ro>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
2016-03-24 19:38:21 +00:00
..
addr2line cmd/addr2line: simplify windows test 2015-06-17 14:23:20 +00:00
api all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
asm cmd/compile: convert data siz to int 2016-03-14 20:22:21 +00:00
cgo cmd/cgo: add C.CBytes 2016-03-16 23:22:10 +00:00
compile cmd/compile: fold more of CMPQ and ANDQ 2016-03-24 19:38:21 +00:00
cover all: single space after period. 2016-03-02 00:13:47 +00:00
dist cmd/dist: skip testcarchive test in Android and iOS 2016-03-24 14:15:17 +00:00
doc all: delete dead test code 2016-03-21 07:10:08 +00:00
fix all: single space after period. 2016-03-02 00:13:47 +00:00
go cmd/go: add s390x support 2016-03-21 08:51:21 +00:00
gofmt all: single space after period. 2016-03-02 00:13:47 +00:00
internal cmd/internal/obj: add support for s390x 2016-03-22 04:15:44 +00:00
link cmd/link, reflect: remove some method type data 2016-03-23 17:00:43 +00:00
nm all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
objdump cmd/objdump: skip TestDisasm* for mips64{,le} 2015-09-10 18:27:09 +00:00
pack cmd/pack,vet: use go doc instead of godoc in doc 2016-03-17 21:06:40 +00:00
pprof cmd/pprof: fix crash with invalid source 2016-03-13 20:38:16 +00:00
trace all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
vet cmd/vet: check lock copy in function calls and return statements 2016-03-23 07:14:26 +00:00
yacc Rewrite leftover references to plan9.bell-labs.com to 9p.io. 2016-03-06 07:07:01 +00:00