1
0
mirror of https://github.com/golang/go synced 2024-11-17 14:04:48 -07:00

[dev.typeparams] cmd/compile: enable register args on ARM64

Now it will be used for functions marked go:registerparams.

test/abi tests are passing with it.

Change-Id: I5af37ae6b79a1064832a42c7ef5f2cc0b5b6a342
Reviewed-on: https://go-review.googlesource.com/c/go/+/322854
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
This commit is contained in:
Cherry Mui 2021-05-25 19:19:08 -04:00
parent 06df0ee7fa
commit 963f33b03b

View File

@ -228,10 +228,8 @@ func NewConfig(arch string, types Types, ctxt *obj.Link, optimize bool) *Config
c.registers = registersARM64[:]
c.gpRegMask = gpRegMaskARM64
c.fpRegMask = fpRegMaskARM64
// XXX commented out for now. Uncomment it will enable register args for
// go:registerparams functions, which isn't fully working, so tests fail.
//c.intParamRegs = paramIntRegARM64
//c.floatParamRegs = paramFloatRegARM64
c.intParamRegs = paramIntRegARM64
c.floatParamRegs = paramFloatRegARM64
c.FPReg = framepointerRegARM64
c.LinkReg = linkRegARM64
c.hasGReg = true