]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix constant folding of right shifts on s390x
authorKeith Randall <khr@google.com>
Wed, 14 Feb 2018 22:21:31 +0000 (14:21 -0800)
committerKeith Randall <khr@golang.org>
Wed, 14 Feb 2018 23:07:39 +0000 (23:07 +0000)
commit1566bf90253097dfec83f621a48e761ded4d2144
tree70adf631d118d2ce9f0978e608e50442240fcc0f
parentc3e8da67dd79d84ac04187b5ce577d76d4e0c032
cmd/compile: fix constant folding of right shifts on s390x

Repeat previous fix on amd64 for s390x.
Sub-word right shifts should sign extend before shifting.

Update #23812

Change-Id: I2d770190c7d8a22310b0dbd9facb3fb05afa362a
Reviewed-on: https://go-review.googlesource.com/94028
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/ssa/gen/S390X.rules
src/cmd/compile/internal/ssa/gen/S390XOps.go
src/cmd/compile/internal/ssa/rewriteS390X.go