aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2022-08-11 15:05:59 -0700
committerMatthew Dempsky <mdempsky@google.com>2022-08-12 17:54:26 +0000
commit7f3569c33acb2e1a23c55a29ddff2203e39c0176 (patch)
tree7a547723abd09be032659da9de3296f0db28d1b9 /src
parentebbf2b44c59e2c473ed4ed6b0e044f5daee75e54 (diff)
downloadgo-7f3569c33acb2e1a23c55a29ddff2203e39c0176.tar.xz
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>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/compile/internal/ssa/debug_lines_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/compile/internal/ssa/debug_lines_test.go b/src/cmd/compile/internal/ssa/debug_lines_test.go
index 2451e2487b..47772cf1a5 100644
--- a/src/cmd/compile/internal/ssa/debug_lines_test.go
+++ b/src/cmd/compile/internal/ssa/debug_lines_test.go
@@ -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)