Skip to content

Commit

Permalink
cmd/compile/internal/ssa: include "ppc64" in has-regabi arches list
Browse files Browse the repository at this point in the history
While here, rename helper function to follow Go naming idioms:
https://github.com/golang/go/wiki/CodeReviewComments#initialisms

Fixes golang#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>
  • Loading branch information
mdempsky committed Aug 12, 2022
1 parent ebbf2b4 commit 7f3569c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cmd/compile/internal/ssa/debug_lines_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 7f3569c

Please sign in to comment.