]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/ppc64: fix incorrect int to int64 conversion when checking MOVD...
authorPaul E. Murphy <murp@ibm.com>
Mon, 22 Apr 2024 21:16:30 +0000 (16:16 -0500)
committerPaul Murphy <murp@ibm.com>
Wed, 24 Apr 2024 15:53:25 +0000 (15:53 +0000)
commit3aad2d0765b9f652e1964a8261d6ef0035d9535f
tree1b6e4db33900e4b35d64937348dc81e404c6c52d
parent4792ca7b93d5745647a95ac73a93f9c9b97db499
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 #66955

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>
src/cmd/asm/internal/asm/testdata/ppc64.s
src/cmd/internal/obj/ppc64/obj9.go