Commit 4f15b547 authored by Keith Randall's avatar Keith Randall Committed by Keith Randall
Browse files

cmd/compile: ensure S390X moves don't overflow int32

Break ADDconst into ADD + MOVDconst, so that if the constant
is too big it won't overflow ADDconst's constant field.

For normal sizes, other rules will recombine into an ADDconst.

Fixes S390X breakage from CL 33909.

Change-Id: Id804ee052365527efb580f797688b0ce83c47915
Reviewed-on: https://go-review.googlesource.com/c/151597


Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: default avatarMichael Munday <mike.munday@ibm.com>
parent 96d41786
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment