cmd/asm: fix handling of negative shifts.
The change that "fixed" LSH was incorrect, and the fix for RSH was poor. Make both use a correct, simple test: if the 64-bit value as a signed integer is negative, it's an error. Really fixes #11278. Change-Id: I72cca03d7ad0d64fd649fa33a9ead2f31bd2977b Reviewed-on: https://go-review.googlesource.com/11325Reviewed-by: Andrew Gerrand <adg@golang.org>
Showing
Please register or sign in to comment