]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.22] cmd/internal/obj/ppc64: fix incorrect int to int64 conversion...
authorPaul E. Murphy <murp@ibm.com>
Mon, 22 Apr 2024 21:16:30 +0000 (16:16 -0500)
committerJoedian Reid <joedian@google.com>
Fri, 26 Apr 2024 16:29:36 +0000 (16:29 +0000)
commit12c11770454d95c0add4ce5620d1e0ddde68063c
tree5f2cc9e7877d7cdeab93e704e68d162a8cb4ccf4
parentd6c972ad41043f38bfa31f3c7036e6d8a3361f2d
[release-branch.go1.22] cmd/internal/obj/ppc64: fix incorrect int to int64 conversion when checking MOVD opcodes

A type conversion from int to int64 was done in the wrong place causing
some MOVD $const, Rx operations to be incorrectly transformed on 32 bit
hosts cross-compiling for ppc64x.

Fixes #67018

Change-Id: I023ba267a8dac6d6bd22f8146c0d9d2d473bc5c1
Reviewed-on: https://go-review.googlesource.com/c/go/+/580796
Reviewed-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
Reviewed-by: Joedian Reid <joedian@google.com>
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-on: https://go-review.googlesource.com/c/go/+/581455
src/cmd/asm/internal/asm/testdata/ppc64.s
src/cmd/internal/obj/ppc64/obj9.go