summaryrefslogtreecommitdiff
path: root/test/codegen/bool.go
diff options
context:
space:
mode:
authorPaul E. Murphy <murp@ibm.com>2023-01-24 11:38:29 -0600
committerPaul Murphy <murp@ibm.com>2023-01-27 19:03:02 +0000
commit15405317460b57ff9ef605d0ca63795477c79b05 (patch)
treed47eb0f1636774a73050ddc00eafa9a29900a743 /test/codegen/bool.go
parent0301c6c3512561b85b48d0e167f3e405484f496f (diff)
downloadgo-git-15405317460b57ff9ef605d0ca63795477c79b05.tar.gz
test/codegen: merge identical ppc64 and ppc64le tests
Manually consolidate the remaining ppc64/ppc64le test which are not so trivial to automatically merge. The remaining ppc64le tests are limited to cases where load/stores are merged (this only happens on ppc64le) and the race detector (only supported on ppc64le). Change-Id: I1f9c0f3d3ddbb7fbbd8c81fbbd6537394fba63ce Reviewed-on: https://go-review.googlesource.com/c/go/+/463217 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Run-TryBot: Paul Murphy <murp@ibm.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
Diffstat (limited to 'test/codegen/bool.go')
-rw-r--r--test/codegen/bool.go18
1 files changed, 8 insertions, 10 deletions
diff --git a/test/codegen/bool.go b/test/codegen/bool.go
index ecc21fa90a..286440d704 100644
--- a/test/codegen/bool.go
+++ b/test/codegen/bool.go
@@ -18,7 +18,6 @@ func convertNeq0B(x uint8, c bool) bool {
func convertNeq0W(x uint16, c bool) bool {
// amd64:"ANDL\t[$]1",-"SETNE"
// ppc64x:"ANDCC",-"CMPW",-"ISEL"
- // ppc64le/power9:"ANDCC",-CMPW",-"ISEL"
b := x&1 != 0
return c && b
}
@@ -38,22 +37,21 @@ func convertNeq0Q(x uint64, c bool) bool {
}
func convertNeqBool32(x uint32) bool {
- // ppc64x:"ANDCC",-"CMPW",-"ISEL"
- return x&1 != 0
+ // ppc64x:"ANDCC",-"CMPW",-"ISEL"
+ return x&1 != 0
}
func convertEqBool32(x uint32) bool {
- // ppc64x:"ANDCC",-"CMPW","XOR",-"ISEL"
- // ppc64le/power9:"ANDCC","XOR",-"CMPW",-"ISEL"
- return x&1 == 0
+ // ppc64x:"ANDCC",-"CMPW","XOR",-"ISEL"
+ return x&1 == 0
}
func convertNeqBool64(x uint64) bool {
- // ppc64x:"ANDCC",-"CMP",-"ISEL"
- return x&1 != 0
+ // ppc64x:"ANDCC",-"CMP",-"ISEL"
+ return x&1 != 0
}
func convertEqBool64(x uint64) bool {
- // ppc64x:"ANDCC","XOR",-"CMP",-"ISEL"
- return x&1 == 0
+ // ppc64x:"ANDCC","XOR",-"CMP",-"ISEL"
+ return x&1 == 0
}