aboutsummaryrefslogtreecommitdiff
path: root/test/codegen/bool.go
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2026-03-27 16:20:06 -0700
committerGopher Robot <gobot@golang.org>2026-03-31 11:01:13 -0700
commitd6492e284b61c8be4bfce5ee0ca907f4df5deb72 (patch)
tree2dd97ab6ef6c6ae41d93bcbf21e133ec500f79e8 /test/codegen/bool.go
parent1673075d4bd324e69cb4e6e58760316e2c84e604 (diff)
downloadgo-d6492e284b61c8be4bfce5ee0ca907f4df5deb72.tar.xz
test/codegen: get rid of \s
Replace \s with a space in backtick-quoted strings Replace \\s with a space in double-quoted strings Change-Id: I0c8b249bb12c2c8ca69e683e4bc6f27544fd6094 Reviewed-on: https://go-review.googlesource.com/c/go/+/760680 Auto-Submit: Keith Randall <khr@google.com> Reviewed-by: Junyang Shao <shaojunyang@google.com> Reviewed-by: Paul Murphy <paumurph@redhat.com> Reviewed-by: Keith Randall <khr@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'test/codegen/bool.go')
-rw-r--r--test/codegen/bool.go22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/codegen/bool.go b/test/codegen/bool.go
index 453b4c6652..e201f0a969 100644
--- a/test/codegen/bool.go
+++ b/test/codegen/bool.go
@@ -242,52 +242,52 @@ func TestSetInvGeFp64(x float64, y float64) bool {
return b
}
func TestLogicalCompareZero(x *[64]uint64) {
- // ppc64x:"ANDCC",-"AND\\s"
+ // ppc64x:"ANDCC",-"AND "
b := x[0] & 3
if b != 0 {
x[0] = b
}
- // ppc64x:"ANDCC",-"AND\\s"
+ // ppc64x:"ANDCC",-"AND "
b = x[1] & x[2]
if b != 0 {
x[1] = b
}
- // ppc64x:"ANDNCC",-"ANDN\\s"
+ // ppc64x:"ANDNCC",-"ANDN "
b = x[1] &^ x[2]
if b != 0 {
x[1] = b
}
- // ppc64x:"ORCC",-"OR\\s"
+ // ppc64x:"ORCC",-"OR "
b = x[3] | x[4]
if b != 0 {
x[3] = b
}
- // ppc64x:"SUBCC",-"SUB\\s"
+ // ppc64x:"SUBCC",-"SUB "
b = x[5] - x[6]
if b != 0 {
x[5] = b
}
- // ppc64x:"NORCC",-"NOR\\s"
+ // ppc64x:"NORCC",-"NOR "
b = ^(x[5] | x[6])
if b != 0 {
x[5] = b
}
- // ppc64x:"XORCC",-"XOR\\s"
+ // ppc64x:"XORCC",-"XOR "
b = x[7] ^ x[8]
if b != 0 {
x[7] = b
}
- // ppc64x:"ADDCC",-"ADD\\s"
+ // ppc64x:"ADDCC",-"ADD "
b = x[9] + x[10]
if b != 0 {
x[9] = b
}
- // ppc64x:"NEGCC",-"NEG\\s"
+ // ppc64x:"NEGCC",-"NEG "
b = -x[11]
if b != 0 {
x[11] = b
}
- // ppc64x:"CNTLZDCC",-"CNTLZD\\s"
+ // ppc64x:"CNTLZDCC",-"CNTLZD "
b = uint64(bits.LeadingZeros64(x[12]))
if b != 0 {
x[12] = b
@@ -299,7 +299,7 @@ func TestLogicalCompareZero(x *[64]uint64) {
x[12] = uint64(c)
}
- // ppc64x:"MULHDUCC",-"MULHDU\\s"
+ // ppc64x:"MULHDUCC",-"MULHDU "
hi, _ := bits.Mul64(x[13], x[14])
if hi != 0 {
x[14] = hi