aboutsummaryrefslogtreecommitdiff
path: root/src/syscall
diff options
context:
space:
mode:
authorMichael Munday <munday@ca.ibm.com>2017-04-12 18:37:27 -0400
committerMichael Munday <munday@ca.ibm.com>2017-04-13 18:35:11 +0000
commitf75b5e99ed19e97ea78e62a406d03c1632efa7d4 (patch)
tree1e0450d8c1fb549574530ade90565d674f702ace /src/syscall
parentdc09a7af2e72fe4863cac51f51f8581779ee28e0 (diff)
downloadgo-f75b5e99ed19e97ea78e62a406d03c1632efa7d4.tar.xz
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>
Diffstat (limited to 'src/syscall')
0 files changed, 0 insertions, 0 deletions