diff options
| author | Keith Randall <khr@golang.org> | 2026-03-27 16:20:06 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-03-31 11:01:13 -0700 |
| commit | d6492e284b61c8be4bfce5ee0ca907f4df5deb72 (patch) | |
| tree | 2dd97ab6ef6c6ae41d93bcbf21e133ec500f79e8 /test/codegen/memops_bigoffset.go | |
| parent | 1673075d4bd324e69cb4e6e58760316e2c84e604 (diff) | |
| download | go-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/memops_bigoffset.go')
| -rw-r--r-- | test/codegen/memops_bigoffset.go | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/test/codegen/memops_bigoffset.go b/test/codegen/memops_bigoffset.go index d34531d76d..4240e7a131 100644 --- a/test/codegen/memops_bigoffset.go +++ b/test/codegen/memops_bigoffset.go @@ -15,57 +15,57 @@ type big2 struct { func loadLargeOffset(sw *big1, sd *big2) (uint32, uint64) { - // ppc64x:`MOVWZ\s+[0-9]+\(R[0-9]+\)`,-`ADD` + // ppc64x:`MOVWZ +[0-9]+\(R[0-9]+\)`,-`ADD` a3 := sw.w[1<<10] - // ppc64le/power10:`MOVWZ\s+[0-9]+\(R[0-9]+\),\sR[0-9]+`,-`ADD` - // ppc64x/power9:`ADD`,`MOVWZ\s+\(R[0-9]+\),\sR[0-9]+` - // ppc64x/power8:`ADD`,`MOVWZ\s+\(R[0-9]+\),\sR[0-9]+` + // ppc64le/power10:`MOVWZ +[0-9]+\(R[0-9]+\), R[0-9]+`,-`ADD` + // ppc64x/power9:`ADD`,`MOVWZ +\(R[0-9]+\), R[0-9]+` + // ppc64x/power8:`ADD`,`MOVWZ +\(R[0-9]+\), R[0-9]+` b3 := sw.w[1<<16] - // ppc64le/power10:`MOVWZ\s+[0-9]+\(R[0-9]+\),\sR[0-9]+`,-`ADD` - // ppc64x/power9:`ADD`,`MOVWZ\s+\(R[0-9]+\),\sR[0-9]+` - // ppc64x/power8:`ADD`,`MOVWZ\s+\(R[0-9]+\),\sR[0-9]+` + // ppc64le/power10:`MOVWZ +[0-9]+\(R[0-9]+\), R[0-9]+`,-`ADD` + // ppc64x/power9:`ADD`,`MOVWZ +\(R[0-9]+\), R[0-9]+` + // ppc64x/power8:`ADD`,`MOVWZ +\(R[0-9]+\), R[0-9]+` c3 := sw.w[1<<28] - // ppc64x:`MOVWZ\s+\(R[0-9]+\)\(R[0-9]+\),\sR[0-9]+` + // ppc64x:`MOVWZ +\(R[0-9]+\)\(R[0-9]+\), R[0-9]+` d3 := sw.w[1<<29] - // ppc64x:`MOVD\s+[0-9]+\(R[0-9]+\)`,-`ADD` + // ppc64x:`MOVD +[0-9]+\(R[0-9]+\)`,-`ADD` a4 := sd.d[1<<10] - // ppc64le/power10:`MOVD\s+[0-9]+\(R[0-9]+\)`,-`ADD` - // ppc64x/power9:`ADD`,`MOVD\s+\(R[0-9]+\),\sR[0-9]+` - // ppc64x/power8:`ADD`,`MOVD\s+\(R[0-9]+\),\sR[0-9]+` + // ppc64le/power10:`MOVD +[0-9]+\(R[0-9]+\)`,-`ADD` + // ppc64x/power9:`ADD`,`MOVD +\(R[0-9]+\), R[0-9]+` + // ppc64x/power8:`ADD`,`MOVD +\(R[0-9]+\), R[0-9]+` b4 := sd.d[1<<16] - // ppc64le/power10`:`MOVD\s+[0-9]+\(R[0-9]+\)`,-`ADD` - // ppc64x/power9:`ADD`,`MOVD\s+\(R[0-9]+\),\sR[0-9]+` - // ppc64x/power8:`ADD`,`MOVD\s+\(R[0-9]+\),\sR[0-9]+` + // ppc64le/power10`:`MOVD +[0-9]+\(R[0-9]+\)`,-`ADD` + // ppc64x/power9:`ADD`,`MOVD +\(R[0-9]+\), R[0-9]+` + // ppc64x/power8:`ADD`,`MOVD +\(R[0-9]+\), R[0-9]+` c4 := sd.d[1<<27] - // ppc64x:`MOVD\s+\(R[0-9]+\)\(R[0-9]+\),\sR[0-9]+` + // ppc64x:`MOVD +\(R[0-9]+\)\(R[0-9]+\), R[0-9]+` d4 := sd.d[1<<28] return a3 + b3 + c3 + d3, a4 + b4 + c4 + d4 } func storeLargeOffset(sw *big1, sd *big2) { - // ppc64x:`MOVW\s+R[0-9]+,\s[0-9]+\(R[0-9]+\)`,-`ADD` + // ppc64x:`MOVW +R[0-9]+, [0-9]+\(R[0-9]+\)`,-`ADD` sw.w[1<<10] = uint32(10) - // ppc64le/power10:`MOVW\s+R[0-9]+,\s[0-9]+\(R[0-9]+\)`,-`ADD` - // ppc64x/power9:`MOVW\s+R[0-9]+\,\s\(R[0-9]+\)`,`ADD` - // ppc64x/power8:`MOVW\s+R[0-9]+\,\s\(R[0-9]+\)`,`ADD` + // ppc64le/power10:`MOVW +R[0-9]+, [0-9]+\(R[0-9]+\)`,-`ADD` + // ppc64x/power9:`MOVW +R[0-9]+\, \(R[0-9]+\)`,`ADD` + // ppc64x/power8:`MOVW +R[0-9]+\, \(R[0-9]+\)`,`ADD` sw.w[1<<16] = uint32(20) - // ppc64le/power10:`MOVW\s+R[0-9]+,\s[0-9]+\(R[0-9]+\)`,-`ADD` - // ppc64x/power9:`MOVW\s+R[0-9]+,\s\(R[0-9]+\)`,`ADD` - // ppc64x/power8:`MOVW\s+R[0-9]+,\s\(R[0-9]+\)`,`ADD` + // ppc64le/power10:`MOVW +R[0-9]+, [0-9]+\(R[0-9]+\)`,-`ADD` + // ppc64x/power9:`MOVW +R[0-9]+, \(R[0-9]+\)`,`ADD` + // ppc64x/power8:`MOVW +R[0-9]+, \(R[0-9]+\)`,`ADD` sw.w[1<<28] = uint32(30) - // ppc64x:`MOVW\s+R[0-9]+,\s\(R[0-9]+\)` + // ppc64x:`MOVW +R[0-9]+, \(R[0-9]+\)` sw.w[1<<29] = uint32(40) - // ppc64x:`MOVD\s+R[0-9]+,\s[0-9]+\(R[0-9]+\)`,-`ADD` + // ppc64x:`MOVD +R[0-9]+, [0-9]+\(R[0-9]+\)`,-`ADD` sd.d[1<<10] = uint64(40) - // ppc64le/power10:`MOVD\s+R[0-9]+,\s[0-9]+\(R[0-9]+\)`,-`ADD` - // ppc64x/power9:`MOVD\s+R[0-9]+,\s\(R[0-9]+\)`,`ADD` - // ppc64x/power8:`MOVD\s+R[0-9]+,\s\(R[0-9]+\)`,`ADD` + // ppc64le/power10:`MOVD +R[0-9]+, [0-9]+\(R[0-9]+\)`,-`ADD` + // ppc64x/power9:`MOVD +R[0-9]+, \(R[0-9]+\)`,`ADD` + // ppc64x/power8:`MOVD +R[0-9]+, \(R[0-9]+\)`,`ADD` sd.d[1<<16] = uint64(50) - // ppc64le/power10`:`MOVD\s+R[0-9]+,\s[0-9]+\(R[0-9]+\)`,-`ADD` - // ppc64x/power9:`MOVD\s+R[0-9]+,\s\(R[0-9]+\)`,`ADD` - // ppc64x/power8:`MOVD\s+R[0-9]+,\s\(R[0-9]+\)`,`ADD` + // ppc64le/power10`:`MOVD +R[0-9]+, [0-9]+\(R[0-9]+\)`,-`ADD` + // ppc64x/power9:`MOVD +R[0-9]+, \(R[0-9]+\)`,`ADD` + // ppc64x/power8:`MOVD +R[0-9]+, \(R[0-9]+\)`,`ADD` sd.d[1<<27] = uint64(60) - // ppc64x:`MOVD\s+R[0-9]+,\s\(R[0-9]+\)` + // ppc64x:`MOVD +R[0-9]+, \(R[0-9]+\)` sd.d[1<<28] = uint64(70) } |
