go/src/cmd
Robert Griesemer c0bbeb0982 cmd/compile: adjust types2 shift check to match go/types (cleanup)
With this change, the shift checking code matches the corresponding
go/types code, but for the differences in the internal error reporting,
and call of check.overflow.

The change leads to the recording of an untyped int value if the RHS
of a non-constant shift is an untyped integer value. Adjust the type
in the compiler's irgen accordingly. Add test/shift3.go to verify
behavior.

Change-Id: I20386fcb1d5c48becffdc2203081fb70c08b282d
Reviewed-on: https://go-review.googlesource.com/c/go/+/398236
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
Trust: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
2022-04-07 17:19:55 +00:00
..
addr2line
api internal/testenv: add GOROOT and use it to fix tests broken with -trimpath 2022-03-18 21:55:52 +00:00
asm all: remove trailing blank doc comment lines 2022-04-01 18:18:07 +00:00
buildid
cgo cmd/cgo: retain original file paths in godefs generated comment 2022-04-03 07:18:10 +00:00
compile cmd/compile: adjust types2 shift check to match go/types (cleanup) 2022-04-07 17:19:55 +00:00
cover all: remove trailing blank doc comment lines 2022-04-01 18:18:07 +00:00
dist cmd/dist: move more environment logic into cmd/dist from make and run scripts 2022-04-05 21:45:19 +00:00
doc internal/testenv: add GOROOT and use it to fix tests broken with -trimpath 2022-03-18 21:55:52 +00:00
fix internal/diff: add, replacing cmd/internal/diff 2022-03-18 16:56:29 +00:00
go all: separate doc comment from //go: directives 2022-04-05 17:54:15 +00:00
gofmt cmd/gofmt: return a proper error for empty Go files 2022-03-24 09:17:34 +00:00
internal cmd/internal/obj: set morestack arg spilling and regabi prologue on riscv64 2022-04-06 01:11:21 +00:00
link all: separate doc comment from //go: directives 2022-04-05 17:54:15 +00:00
nm internal/testenv: add GOROOT and use it to fix tests broken with -trimpath 2022-03-18 21:55:52 +00:00
objdump cmd/compile: require -p flag 2022-03-09 21:31:58 +00:00
pack cmd/compile: require -p flag 2022-03-09 21:31:58 +00:00
pprof cmd/pprof: point to -h in package documentation 2022-04-01 12:16:03 +00:00
test2json
trace all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
vendor cmd/vendor: undo stray edits from CL 384262 2022-04-05 18:58:52 +00:00
vet
README.vendor
go.mod cmd/vendor: update golang.org/x/tools to c717623e31 2022-03-21 18:28:15 +00:00
go.sum cmd/vendor: update golang.org/x/tools to c717623e31 2022-03-21 18:28:15 +00:00

README.vendor

See src/README.vendor for information on loading vendored packages
and updating the vendor directory.