From d6492e284b61c8be4bfce5ee0ca907f4df5deb72 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Fri, 27 Mar 2026 16:20:06 -0700 Subject: 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 Reviewed-by: Junyang Shao Reviewed-by: Paul Murphy Reviewed-by: Keith Randall LUCI-TryBot-Result: Go LUCI --- test/codegen/comparisons.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/codegen/comparisons.go') diff --git a/test/codegen/comparisons.go b/test/codegen/comparisons.go index e05877ea46..d3cb2c1921 100644 --- a/test/codegen/comparisons.go +++ b/test/codegen/comparisons.go @@ -173,8 +173,8 @@ func CmpMem5(p **int) { } func CmpMem6(a []int) int { - // 386:`CMPL\s8\([A-Z]+\),` - // amd64:`CMPQ\s16\([A-Z]+\),` + // 386:`CMPL 8\([A-Z]+\),` + // amd64:`CMPQ 16\([A-Z]+\),` if a[1] > a[2] { return 1 } else { @@ -237,7 +237,7 @@ func CmpToZero(a, b, d int32, e, f int64, deOptC0, deOptC1 bool) int32 { c7 := e&(f<<3) < 0 // For arm64, could be CMN+BPL or ADD+TBZ c8 := e+(f<<3) < 0 - // arm64:`TST\sR[0-9],\sR[0-9]+` + // arm64:`TST R[0-9], R[0-9]+` c9 := e&(-19) < 0 if c0 { return 1 -- cgit v1.3