]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/asm: fix rlwnm reg,reg,const,reg encoding on ppc64
authorPaul E. Murphy <murp@ibm.com>
Tue, 3 Nov 2020 22:59:25 +0000 (16:59 -0600)
committerLynn Boger <laboger@linux.vnet.ibm.com>
Wed, 4 Nov 2020 21:26:23 +0000 (21:26 +0000)
commit5ed81a3d14aa4eda5de87d7fe074b4c913b58511
tree4cad79801892be375bc82135f11bea082f3e54db
parentf532f19d94365d803e68568eb82d0dd19c81cc5b
cmd/asm: fix rlwnm reg,reg,const,reg encoding on ppc64

The wrong value for the first reg parameter was selected.
Likewise the wrong opcode was selected.  This should match
rlwnm (rrr type), not rlwinm (irr type).

Similarly, fix the optab matching rules so clrlslwi does
not match reg,reg,const,reg arguments.  This is not a valid
operand combination for clrlslwi.

Fixes #42368

Change-Id: I4eb16d45a760b9fd3f497ef9863f82465351d39f
Reviewed-on: https://go-review.googlesource.com/c/go/+/267421
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Trust: Lynn Boger <laboger@linux.vnet.ibm.com>
src/cmd/asm/internal/asm/testdata/ppc64.s
src/cmd/internal/obj/ppc64/asm9.go