]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/ssa: include "ppc64" in has-regabi arches list
authorMatthew Dempsky <mdempsky@google.com>
Thu, 11 Aug 2022 22:05:59 +0000 (15:05 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 12 Aug 2022 17:54:26 +0000 (17:54 +0000)
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>

src/cmd/compile/internal/ssa/debug_lines_test.go

index 2451e2487b002129a81b8714368e42de98dba47f..47772cf1a513b6762d48c6c5a8cb2c468c3ac4eb 100644 (file)
@@ -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)