go/src/cmd/compile
Michael Munday f75b5e99ed cmd/compile: fix s390x unsigned comparison constant merging rules
On s390x unsigned integer comparisons with immediates require the immediate
to be an unsigned 32-bit integer. The rule was checking that the immediate
was a signed 32-bit integer.

This CL also adds a test for comparisons that could be turned into compare
with immediate or equivalent instructions (depending on architecture and
optimizations applied).

Fixes #19940.

Change-Id: Ifd6aa989fd3d50e282f7d30fec9db462c28422b1
Reviewed-on: https://go-review.googlesource.com/40433
Run-TryBot: Michael Munday <munday@ca.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
2017-04-13 18:35:11 +00:00
..
internal cmd/compile: fix s390x unsigned comparison constant merging rules 2017-04-13 18:35:11 +00:00
doc.go cmd/compile: add mutex profiling support 2017-04-05 22:10:54 +00:00
fmt_test.go cmd/compile: factor out Pkg, Sym, and Type into package types 2017-04-07 03:04:00 +00:00
main.go cmd/compile: eliminate direct uses of gc.Thearch in backends 2017-03-17 22:10:53 +00:00