1
0
mirror of https://github.com/golang/go synced 2024-10-01 09:48:32 -06:00
go/ssa/interp
Alan Donovan 06a43b8a0c go.tools/ssa: fix regression in x<<y logic from CL 11011043
Details:
- reintroduce interp.asUint64: it's not sound to use only the
  low 32 bits of y, which is what asInt gives us, when GOARCH=386.
- instead, emit a uint64 conversion when y is not unsigned
  (i.e. a signed var, or an untyped constant).

Tested on 386 & x86-64.

R=gri
CC=golang-dev
https://golang.org/cl/11023043
2013-07-09 10:21:25 -04:00
..
testdata go.tools/ssa: avoid redundant uint64 conversion of right operand of <<, >>. 2013-07-08 17:33:51 -04:00
external_plan9.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
external_unix.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
external_windows.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
external.go go.tools/ssa: Value.Pos() method + remaining source position plumbing. 2013-05-30 09:59:17 -04:00
interp_test.go go.tools/ssa: use go/types.LookupFieldOrMethod, and simplify. 2013-07-01 15:17:36 -04:00
interp.go go.tools/ssa: some renamings. 2013-07-01 15:24:50 -04:00
map.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
ops.go go.tools/ssa: fix regression in x<<y logic from CL 11011043 2013-07-09 10:21:25 -04:00
reflect.go go.tools/ssa: Function.Synthetic documents provenance of synthetic functions. 2013-07-03 17:57:20 -04:00
value.go go.tools/ssa: Value.Pos() method + remaining source position plumbing. 2013-05-30 09:59:17 -04:00