diff options
author | Cherry Mui <cherryyz@google.com> | 2021-05-25 19:19:08 -0400 |
---|---|---|
committer | Cherry Mui <cherryyz@google.com> | 2021-05-27 16:38:12 +0000 |
commit | 963f33b03b88e2c010d6a9876c3f0cc8d1f36f2d (patch) | |
tree | 3df6025766a7a271815b148845bf11354865e3d7 /src/cmd/compile/internal/ssa | |
parent | 06df0ee7fa8b6d7d095de77274f53fb81a43d622 (diff) | |
download | go-963f33b03b88e2c010d6a9876c3f0cc8d1f36f2d.tar.gz go-963f33b03b88e2c010d6a9876c3f0cc8d1f36f2d.zip |
[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>
Diffstat (limited to 'src/cmd/compile/internal/ssa')
-rw-r--r-- | src/cmd/compile/internal/ssa/config.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cmd/compile/internal/ssa/config.go b/src/cmd/compile/internal/ssa/config.go index 07d8b6e532..7d680304c9 100644 --- a/src/cmd/compile/internal/ssa/config.go +++ b/src/cmd/compile/internal/ssa/config.go @@ -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 |