diff options
| author | Keith Randall <khr@golang.org> | 2026-03-27 16:42:41 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-03-31 11:01:16 -0700 |
| commit | d5b6d583c16f60e4a2f80f8b0fe78abab503f84c (patch) | |
| tree | b2000af6a1ba82ea647f23d22812d9c329b61fb5 /test/codegen/alloc.go | |
| parent | d6492e284b61c8be4bfce5ee0ca907f4df5deb72 (diff) | |
| download | go-d5b6d583c16f60e4a2f80f8b0fe78abab503f84c.tar.xz | |
test/codegen: replace commas with spaces between regexps
Change-Id: Ia7a955833d761e08c1b8081fb29a2e6317de004c
Reviewed-on: https://go-review.googlesource.com/c/go/+/760681
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/alloc.go')
| -rw-r--r-- | test/codegen/alloc.go | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/test/codegen/alloc.go b/test/codegen/alloc.go index 20ccc853c6..f755bb54a2 100644 --- a/test/codegen/alloc.go +++ b/test/codegen/alloc.go @@ -10,28 +10,28 @@ package codegen func zeroAllocNew1() *struct{} { - // 386:-`CALL runtime\.newobject`, `LEAL runtime.zerobase` - // amd64:-`CALL runtime\.newobject`, `LEAQ runtime.zerobase` - // arm:-`CALL runtime\.newobject`, `MOVW [$]runtime.zerobase` - // arm64:-`CALL runtime\.newobject`, `MOVD [$]runtime.zerobase` - // riscv64:-`CALL runtime\.newobject`, `MOV [$]runtime.zerobase` + // 386:-`CALL runtime\.newobject` `LEAL runtime.zerobase` + // amd64:-`CALL runtime\.newobject` `LEAQ runtime.zerobase` + // arm:-`CALL runtime\.newobject` `MOVW [$]runtime.zerobase` + // arm64:-`CALL runtime\.newobject` `MOVD [$]runtime.zerobase` + // riscv64:-`CALL runtime\.newobject` `MOV [$]runtime.zerobase` return new(struct{}) } func zeroAllocNew2() *[0]int { - // 386:-`CALL runtime\.newobject`, `LEAL runtime.zerobase` - // amd64:-`CALL runtime\.newobject`, `LEAQ runtime.zerobase` - // arm:-`CALL runtime\.newobject`, `MOVW [$]runtime.zerobase` - // arm64:-`CALL runtime\.newobject`, `MOVD [$]runtime.zerobase` - // riscv64:-`CALL runtime\.newobject`, `MOV [$]runtime.zerobase` + // 386:-`CALL runtime\.newobject` `LEAL runtime.zerobase` + // amd64:-`CALL runtime\.newobject` `LEAQ runtime.zerobase` + // arm:-`CALL runtime\.newobject` `MOVW [$]runtime.zerobase` + // arm64:-`CALL runtime\.newobject` `MOVD [$]runtime.zerobase` + // riscv64:-`CALL runtime\.newobject` `MOV [$]runtime.zerobase` return new([0]int) } func zeroAllocSliceLit() []int { - // 386:-`CALL runtime\.newobject`, `LEAL runtime.zerobase` - // amd64:-`CALL runtime\.newobject`, `LEAQ runtime.zerobase` - // arm:-`CALL runtime\.newobject`, `MOVW [$]runtime.zerobase` - // arm64:-`CALL runtime\.newobject`, `MOVD [$]runtime.zerobase` - // riscv64:-`CALL runtime\.newobject`, `MOV [$]runtime.zerobase` + // 386:-`CALL runtime\.newobject` `LEAL runtime.zerobase` + // amd64:-`CALL runtime\.newobject` `LEAQ runtime.zerobase` + // arm:-`CALL runtime\.newobject` `MOVW [$]runtime.zerobase` + // arm64:-`CALL runtime\.newobject` `MOVD [$]runtime.zerobase` + // riscv64:-`CALL runtime\.newobject` `MOV [$]runtime.zerobase` return []int{} } |
