]> Cypherpunks repositories - gostls13.git/commit
cmd/internal: add shift opcodes with shift operands on ppc64x
authorLynn Boger <laboger@linux.vnet.ibm.com>
Mon, 24 Oct 2016 19:40:42 +0000 (14:40 -0500)
committerDavid Chase <drchase@google.com>
Tue, 25 Oct 2016 14:56:20 +0000 (14:56 +0000)
commitb10b2f8d407198d59525197e0b94a16fcc4a7cf0
tree96cc36bcf978f988d354c6f499fc5594a581a24f
parent5db7c6d32cef3d9dd917adb81c4a38978853a17b
cmd/internal: add shift opcodes with shift operands on ppc64x

Some original shift opcodes for ppc64x expected an operand to be
a mask instead of a shift count, preventing some valid shift counts
from being written.

This adds new opcodes for shifts where needed, using mnemonics that
match the ppc64 asm and allowing the assembler to accept the full set
of valid shift counts.

Fixes #15016

Change-Id: Id573489f852038d06def279c13fd0523736878a7
Reviewed-on: https://go-review.googlesource.com/31853
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/asm/internal/asm/testdata/ppc64.s
src/cmd/internal/obj/ppc64/a.out.go
src/cmd/internal/obj/ppc64/anames.go
src/cmd/internal/obj/ppc64/asm9.go