]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.9] 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)
committerAndrew Bonventre <andybons@golang.org>
Thu, 29 Mar 2018 06:04:07 +0000 (06:04 +0000)
commit7467b006914721db65b39c26c626be5e693448f0
tree844b8cae844f723a66c070a1be31f83d7f47a38c
parentce68047f96c8a35d2c3598a41efbc749964e6b1c
[release-branch.go1.9] 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>
Reviewed-on: https://go-review.googlesource.com/102777
Run-TryBot: Andrew Bonventre <andybons@golang.org>
Reviewed-by: Keith Randall <khr@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