In last cycle we developed register ABI for ARM64, enabled by
default as a GOEXPERIMENT. This cycle we turn it on all the time.
Later CLs will clean up fallback code.
Change-Id: Idac4dcff634791cbc3d30988052ecd742b55ab8b
Reviewed-on: https://go-review.googlesource.com/c/go/+/394214
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build !goexperiment.regabiargs && !amd64 && !arm64
+//go:build !goexperiment.regabiargs && !amd64 && !arm64 && !ppc64 && !ppc64le
package abi
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build goexperiment.regabiargs && (ppc64 || ppc64le)
+//go:build ppc64 || ppc64le
package abi
// always on.
var regabiSupported, regabiAlwaysOn bool
switch goarch {
- case "amd64", "arm64":
+ case "amd64", "arm64", "ppc64le", "ppc64":
regabiAlwaysOn = true
- fallthrough
- case "ppc64le", "ppc64":
regabiSupported = true
}