From 8b9c0d1a79251969e46731e46e72e4e8f8998817 Mon Sep 17 00:00:00 2001 From: Archana R Date: Wed, 20 Oct 2021 04:11:57 -0500 Subject: [PATCH] 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 TryBot-Result: Go Bot Trust: Lynn Boger Reviewed-by: Cherry Mui --- test/codegen/comparisons.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/codegen/comparisons.go b/test/codegen/comparisons.go index 35a181f83b6..fd32ea335ce 100644 --- a/test/codegen/comparisons.go +++ b/test/codegen/comparisons.go @@ -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 }