]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile,cmd/internal/obj/ppc64: use mod instructions on power9
authorLynn Boger <laboger@linux.vnet.ibm.com>
Thu, 23 Apr 2020 19:36:28 +0000 (15:36 -0400)
committerLynn Boger <laboger@linux.vnet.ibm.com>
Wed, 29 Apr 2020 14:45:56 +0000 (14:45 +0000)
commit56933fb83852837f169cb35a23815f23c799da87
tree744d289f737b6880622cb088554778b197620cdc
parent07d9ea64abf9f98c525155f4f22776512d4d835d
cmd/compile,cmd/internal/obj/ppc64: use mod instructions on power9

This updates the PPC64.rules file to use the MOD instructions
that are available in power9. Prior to power9 this is done
using a longer sequence with multiply and divide.

Included in this change is removal of the REM* opcode variations
that set the CC or OV bits since their settings are based
on the DIV and are not appropriate for the REM.

Change-Id: Iceed9ce33e128e1911c15592ee674276ce8ba3fa
Reviewed-on: https://go-review.googlesource.com/c/go/+/229761
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: Cherry Zhang <cherryyz@google.com>
src/cmd/asm/internal/asm/testdata/ppc64enc.s
src/cmd/compile/internal/ppc64/ssa.go
src/cmd/compile/internal/ssa/gen/PPC64.rules
src/cmd/compile/internal/ssa/gen/PPC64Ops.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/rewritePPC64.go
src/cmd/internal/obj/ppc64/a.out.go
src/cmd/internal/obj/ppc64/anames.go
src/cmd/internal/obj/ppc64/asm9.go