mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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:
parent
06df0ee7fa
commit
963f33b03b
1 changed files with 2 additions and 4 deletions
|
|
@ -228,10 +228,8 @@ func NewConfig(arch string, types Types, ctxt *obj.Link, optimize bool) *Config
|
||||||
c.registers = registersARM64[:]
|
c.registers = registersARM64[:]
|
||||||
c.gpRegMask = gpRegMaskARM64
|
c.gpRegMask = gpRegMaskARM64
|
||||||
c.fpRegMask = fpRegMaskARM64
|
c.fpRegMask = fpRegMaskARM64
|
||||||
// XXX commented out for now. Uncomment it will enable register args for
|
c.intParamRegs = paramIntRegARM64
|
||||||
// go:registerparams functions, which isn't fully working, so tests fail.
|
c.floatParamRegs = paramFloatRegARM64
|
||||||
//c.intParamRegs = paramIntRegARM64
|
|
||||||
//c.floatParamRegs = paramFloatRegARM64
|
|
||||||
c.FPReg = framepointerRegARM64
|
c.FPReg = framepointerRegARM64
|
||||||
c.LinkReg = linkRegARM64
|
c.LinkReg = linkRegARM64
|
||||||
c.hasGReg = true
|
c.hasGReg = true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue