]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/ppc64: Fix RLDIMI
authorCarlos Eduardo Seo <cseo@linux.vnet.ibm.com>
Thu, 16 Feb 2017 16:58:47 +0000 (14:58 -0200)
committerLynn Boger <laboger@linux.vnet.ibm.com>
Wed, 22 Feb 2017 20:29:48 +0000 (20:29 +0000)
commitc12cd31a3326e6b2119525cd07cebc6d6e1b52ee
tree121badc30e765158edc1e8d86a33b2e54b152ed3
parentc804fd8927dabe1484b52e31f752136b7c0b32b7
cmd/internal/obj/ppc64: Fix RLDIMI

Fix the encoding of the SH field for rldimi.

The SH field of rldimi is 6-bit wide and it is not contiguous in the instruction.
Bits 0-4 are placed in bit fields 16-20 in the instruction, while bit 5 is
placed in bit field 30. The current implementation does not consider this and,
therefore, any SH field between 32 and 63 are encoded wrongly in the instruciton.

Change-Id: I4d25a0a70f4219569be0e18160dea5505bd7fff0
Reviewed-on: https://go-review.googlesource.com/37350
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
src/cmd/internal/obj/ppc64/asm9.go