go/src/cmd
Keith Randall daa64ddfe6 cmd/5g: make sure we normalize after unary ops on small types
We were failing ^uint16(0xffff) == 0, as we computed 0xffff0000 instead.

I could only trigger a failure for the above case, the other two tests
^uint16(0xfffe) == 1 and -uint16(0xffff) == 1 didn't seem to fail
previously.  Somehow they get MOVHUs inserted for other reasons (used
by CMP instead of TST?).  I fixed OMINUS anyway, better safe than
sorry.

Fixes #9604

Change-Id: I4c2d5bdc667742873ac029fdbe3db0cf12893c27
Reviewed-on: https://go-review.googlesource.com/2940
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Minux Ma <minux@golang.org>
2015-01-15 23:50:01 +00:00
..
5a cmd/5a, cmd/6a, cmd/8a, cmd/9a: check nerrors before exit 2015-01-09 23:56:28 +00:00
5g cmd/5g: make sure we normalize after unary ops on small types 2015-01-15 23:50:01 +00:00
5l cmd/ld: support for relocation variants 2015-01-07 20:35:37 +00:00
6a cmd/5a, cmd/6a, cmd/8a, cmd/9a: check nerrors before exit 2015-01-09 23:56:28 +00:00
6g cmd/6g, cmd/8g, liblink: improve handling of float constants 2015-01-07 22:26:55 +00:00
6l cmd/ld: support for relocation variants 2015-01-07 20:35:37 +00:00
8a cmd/5a, cmd/6a, cmd/8a, cmd/9a: check nerrors before exit 2015-01-09 23:56:28 +00:00
8g cmd/6g, cmd/8g, liblink: improve handling of float constants 2015-01-07 22:26:55 +00:00
8l cmd/ld: support for relocation variants 2015-01-07 20:35:37 +00:00
9a cmd/5a, cmd/6a, cmd/8a, cmd/9a: check nerrors before exit 2015-01-09 23:56:28 +00:00
9g cmd/9g: don't use R13 2015-01-07 20:36:08 +00:00
9l liblink: adjustments for c2go conversion 2015-01-14 19:18:05 +00:00
addr2line cmd/addr2line, cmd/nm: factor object reading into cmd/internal/objfile 2014-08-07 12:33:06 -04:00
api cmd/api: work around Windows rename issue on the builders 2014-12-23 04:55:44 +00:00
cc [dev.cc] all: merge dev.power64 (7667e41f3ced) into dev.cc 2014-11-14 12:10:52 -05:00
cgo cmd/cgo: also rewrite C.var in selector expressions 2015-01-12 21:48:57 +00:00
dist cmd/dist: fatal shouldn't print errstr on Plan 9 2014-12-23 10:28:17 +00:00
fix build: adjustments for move from src/pkg to src 2014-09-08 00:06:45 -04:00
gc cmd/gc: don't recurse infinitely when a recursive type references itself more than once 2015-01-12 02:09:50 +00:00
go cmd/go: adjust error for custom import checkout mismatch 2015-01-14 15:01:55 +00:00
gofmt go/format, cmd/gofmt: added missing comments, minor internal cleanup 2014-09-30 12:26:38 -07:00
internal all: power64 is now ppc64 2014-12-05 19:13:20 -05:00
ld runtime: faster version of findfunc 2015-01-07 21:24:21 +00:00
link debug/goobj: move to cmd/internal/goobj 2014-11-16 20:52:45 -05:00
nm build: adjustments for move from src/pkg to src 2014-09-08 00:06:45 -04:00
objdump cmd/objdump: Fix error logging 2014-12-09 00:27:39 +00:00
pack cmd/pack: address go vet reports 2014-12-28 07:08:02 +00:00
pprof cmd/pprof: remove -show_bytes from command line help 2014-12-11 15:23:18 +00:00
yacc cmd/yacc: Prevent index out of range. Fixes #9099. 2014-12-18 16:11:50 +00:00