diff options
| author | Junyang Shao <shaojunyang@google.com> | 2026-03-26 20:25:57 +0000 |
|---|---|---|
| committer | Junyang Shao <shaojunyang@google.com> | 2026-04-10 07:25:07 -0700 |
| commit | ce4459cf0ee339b3bcf0ed10427079a234aade36 (patch) | |
| tree | 8a4798fdf60384f34fffedd15c877f1122dc041a /src/cmd/internal/obj/util.go | |
| parent | 926a1bef08ae6b93b50a96eedb15210e1d8c4733 (diff) | |
| download | go-ce4459cf0ee339b3bcf0ed10427079a234aade36.tar.xz | |
cmd/asm, cmd/internal/obj/arm64: support register with index in SVE
This CL is generated by CL 759800.
The new register patterns are (examples):
Z1.B[5]
Z2[6]
P1[7]
PN1[8]
Change-Id: I5bccc4f1c0474dbd4cd4878bd488f36a7026c7ca
Reviewed-on: https://go-review.googlesource.com/c/go/+/759780
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/cmd/internal/obj/util.go')
| -rw-r--r-- | src/cmd/internal/obj/util.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/internal/obj/util.go b/src/cmd/internal/obj/util.go index 8d53a7b412..9b440ebd58 100644 --- a/src/cmd/internal/obj/util.go +++ b/src/cmd/internal/obj/util.go @@ -273,8 +273,8 @@ func writeDconv(w io.Writer, p *Prog, a *Addr, abiDetail bool) { io.WriteString(w, Rconv(int(a.Reg))) } - if (RBaseARM64+1<<10+1<<9) /* arm64.REG_ELEM */ <= a.Reg && - a.Reg < (RBaseARM64+1<<11) /* arm64.REG_ELEM_END */ { + if ((RBaseARM64+1<<10+1<<9) /* arm64.REG_ELEM */ <= a.Reg && a.Reg < (RBaseARM64+1<<11) /* arm64.REG_ZARNG */) || + ((RBaseARM64+1<<11+1<<9) /* arm64.REG_ZARNGELEM */ <= a.Reg && a.Reg < (RBaseARM64+1<<11+1<<10+1<<9) /* arm64.REG_PARNGZM */) { fmt.Fprintf(w, "[%d]", a.Index) } |
