mirror of https://github.com/golang/go.git
cmd/compile/internal/ssa: include "ppc64" in has-regabi arches list
While here, rename helper function to follow Go naming idioms: https://github.com/golang/go/wiki/CodeReviewComments#initialisms Fixes #53456. Change-Id: I041dd25968e192ea2b430d58e3348626a970f92b Reviewed-on: https://go-review.googlesource.com/c/go/+/422957 Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com> Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Keith Randall <khr@google.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
ebbf2b44c5
commit
7f3569c33a
|
|
@ -45,9 +45,9 @@ func testGoArch() string {
|
|||
return *testGoArchFlag
|
||||
}
|
||||
|
||||
func hasRegisterAbi() bool {
|
||||
func hasRegisterABI() bool {
|
||||
switch testGoArch() {
|
||||
case "amd64", "arm64", "ppc64le", "riscv":
|
||||
case "amd64", "arm64", "ppc64", "ppc64le", "riscv":
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
|
@ -62,7 +62,7 @@ func unixOnly(t *testing.T) {
|
|||
// testDebugLinesDefault removes the first wanted statement on architectures that are not (yet) register ABI.
|
||||
func testDebugLinesDefault(t *testing.T, gcflags, file, function string, wantStmts []int, ignoreRepeats bool) {
|
||||
unixOnly(t)
|
||||
if !hasRegisterAbi() {
|
||||
if !hasRegisterABI() {
|
||||
wantStmts = wantStmts[1:]
|
||||
}
|
||||
testDebugLines(t, gcflags, file, function, wantStmts, ignoreRepeats)
|
||||
|
|
|
|||
Loading…
Reference in New Issue