]> Cypherpunks repositories - gostls13.git/commit
cmd/asm: add the fifth argument of the instruction to Optab on arm64
authorerifan01 <eric.fang@arm.com>
Tue, 6 Jun 2023 09:55:58 +0000 (17:55 +0800)
committerEric Fang <eric.fang@arm.com>
Thu, 27 Jul 2023 01:37:21 +0000 (01:37 +0000)
commit8a1ff5182780af72d08c3e6b91694425a1498014
tree7609c4ea0311ce505ff735b1f2b7a7e6f73e0a81
parent598958f0f247fa24b8ed4dfcd454a1958f212666
cmd/asm: add the fifth argument of the instruction to Optab on arm64

Currently the Optab structure contains four arguments of an instruction,
excludes the fifth argument p.RegTo2. It does not participate in
instruction matching and is usually handled separately.

Instructions with five operands are common in the newer arm instruction
set, so this CL adds the fifth argument to Optab, so that instruction
matching is easier. This caused the oplook function also needs to be
updated synchronously, this CL also made some cleaning and modifications
to this function.

Change-Id: I1d95ad99e72a44dfad1e00db182cfc369a0e55c6
Reviewed-on: https://go-review.googlesource.com/c/go/+/505975
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Eric Fang <eric.fang@arm.com>
src/cmd/asm/internal/asm/testdata/arm64error.s
src/cmd/internal/obj/arm64/a.out.go
src/cmd/internal/obj/arm64/anames7.go
src/cmd/internal/obj/arm64/asm7.go