mirror of
https://github.com/golang/go
synced 2024-11-23 01:30:02 -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:
parent
fca46d0b36
commit
8b9c0d1a79
@ -546,6 +546,8 @@ func equalConstString1() bool {
|
||||
b := string("Z")
|
||||
// amd64:-".*memequal"
|
||||
// arm64:-".*memequal"
|
||||
// ppc64:-".*memequal"
|
||||
// ppc64le:-".*memequal"
|
||||
return a == b
|
||||
}
|
||||
|
||||
@ -553,6 +555,8 @@ func equalVarString1(a string) bool {
|
||||
b := string("Z")
|
||||
// amd64:-".*memequal"
|
||||
// arm64:-".*memequal"
|
||||
// ppc64:-".*memequal"
|
||||
// ppc64le:-".*memequal"
|
||||
return a[:1] == b
|
||||
}
|
||||
|
||||
@ -561,6 +565,8 @@ func equalConstString2() bool {
|
||||
b := string("ZZ")
|
||||
// amd64:-".*memequal"
|
||||
// arm64:-".*memequal"
|
||||
// ppc64:-".*memequal"
|
||||
// ppc64le:-".*memequal"
|
||||
return a == b
|
||||
}
|
||||
|
||||
@ -568,6 +574,8 @@ func equalVarString2(a string) bool {
|
||||
b := string("ZZ")
|
||||
// amd64:-".*memequal"
|
||||
// arm64:-".*memequal"
|
||||
// ppc64:-".*memequal"
|
||||
// ppc64le:-".*memequal"
|
||||
return a[:2] == b
|
||||
}
|
||||
|
||||
@ -576,6 +584,8 @@ func equalConstString4() bool {
|
||||
b := string("ZZZZ")
|
||||
// amd64:-".*memequal"
|
||||
// arm64:-".*memequal"
|
||||
// ppc64:-".*memequal"
|
||||
// ppc64le:-".*memequal"
|
||||
return a == b
|
||||
}
|
||||
|
||||
@ -583,6 +593,8 @@ func equalVarString4(a string) bool {
|
||||
b := string("ZZZZ")
|
||||
// amd64:-".*memequal"
|
||||
// arm64:-".*memequal"
|
||||
// ppc64:-".*memequal"
|
||||
// ppc64le:-".*memequal"
|
||||
return a[:4] == b
|
||||
}
|
||||
|
||||
@ -591,6 +603,8 @@ func equalConstString8() bool {
|
||||
b := string("ZZZZZZZZ")
|
||||
// amd64:-".*memequal"
|
||||
// arm64:-".*memequal"
|
||||
// ppc64:-".*memequal"
|
||||
// ppc64le:-".*memequal"
|
||||
return a == b
|
||||
}
|
||||
|
||||
@ -598,5 +612,7 @@ func equalVarString8(a string) bool {
|
||||
b := string("ZZZZZZZZ")
|
||||
// amd64:-".*memequal"
|
||||
// arm64:-".*memequal"
|
||||
// ppc64:-".*memequal"
|
||||
// ppc64le:-".*memequal"
|
||||
return a[:8] == b
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user