Descriptiongo.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.
Patch Set 1 #Patch Set 2 : diff -r 555a4a3ea9ea https://code.google.com/p/go.tools #Patch Set 3 : diff -r 555a4a3ea9ea https://code.google.com/p/go.tools #Patch Set 4 : diff -r 555a4a3ea9ea https://code.google.com/p/go.tools #Patch Set 5 : diff -r a693ede1549e https://code.google.com/p/go.tools #MessagesTotal messages: 3
|