1
0
mirror of https://github.com/golang/go synced 2024-11-26 22:41:23 -07:00

test/codegen: updated comparison test to verify on ppc64,ppc64le

Updated test/codegen/comparison.go to verify memequal is inlined
as implemented in CL 328291.

Change-Id: If7824aed37ee1f8640e54fda0f9b7610582ba316
Reviewed-on: https://go-review.googlesource.com/c/go/+/357289
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Lynn Boger <laboger@linux.vnet.ibm.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
This commit is contained in:
Archana R 2021-10-20 04:11:57 -05:00 committed by Lynn Boger
parent fca46d0b36
commit 8b9c0d1a79

View File

@ -546,6 +546,8 @@ func equalConstString1() bool {
b := string("Z") b := string("Z")
// amd64:-".*memequal" // amd64:-".*memequal"
// arm64:-".*memequal" // arm64:-".*memequal"
// ppc64:-".*memequal"
// ppc64le:-".*memequal"
return a == b return a == b
} }
@ -553,6 +555,8 @@ func equalVarString1(a string) bool {
b := string("Z") b := string("Z")
// amd64:-".*memequal" // amd64:-".*memequal"
// arm64:-".*memequal" // arm64:-".*memequal"
// ppc64:-".*memequal"
// ppc64le:-".*memequal"
return a[:1] == b return a[:1] == b
} }
@ -561,6 +565,8 @@ func equalConstString2() bool {
b := string("ZZ") b := string("ZZ")
// amd64:-".*memequal" // amd64:-".*memequal"
// arm64:-".*memequal" // arm64:-".*memequal"
// ppc64:-".*memequal"
// ppc64le:-".*memequal"
return a == b return a == b
} }
@ -568,6 +574,8 @@ func equalVarString2(a string) bool {
b := string("ZZ") b := string("ZZ")
// amd64:-".*memequal" // amd64:-".*memequal"
// arm64:-".*memequal" // arm64:-".*memequal"
// ppc64:-".*memequal"
// ppc64le:-".*memequal"
return a[:2] == b return a[:2] == b
} }
@ -576,6 +584,8 @@ func equalConstString4() bool {
b := string("ZZZZ") b := string("ZZZZ")
// amd64:-".*memequal" // amd64:-".*memequal"
// arm64:-".*memequal" // arm64:-".*memequal"
// ppc64:-".*memequal"
// ppc64le:-".*memequal"
return a == b return a == b
} }
@ -583,6 +593,8 @@ func equalVarString4(a string) bool {
b := string("ZZZZ") b := string("ZZZZ")
// amd64:-".*memequal" // amd64:-".*memequal"
// arm64:-".*memequal" // arm64:-".*memequal"
// ppc64:-".*memequal"
// ppc64le:-".*memequal"
return a[:4] == b return a[:4] == b
} }
@ -591,6 +603,8 @@ func equalConstString8() bool {
b := string("ZZZZZZZZ") b := string("ZZZZZZZZ")
// amd64:-".*memequal" // amd64:-".*memequal"
// arm64:-".*memequal" // arm64:-".*memequal"
// ppc64:-".*memequal"
// ppc64le:-".*memequal"
return a == b return a == b
} }
@ -598,5 +612,7 @@ func equalVarString8(a string) bool {
b := string("ZZZZZZZZ") b := string("ZZZZZZZZ")
// amd64:-".*memequal" // amd64:-".*memequal"
// arm64:-".*memequal" // arm64:-".*memequal"
// ppc64:-".*memequal"
// ppc64le:-".*memequal"
return a[:8] == b return a[:8] == b
} }