aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/obj/arm64/asm7.go
diff options
context:
space:
mode:
authorerifan01 <eric.fang@arm.com>2023-05-17 12:01:07 +0800
committerEric Fang <eric.fang@arm.com>2023-05-18 01:40:37 +0000
commit6ed847431709c673adbb783d3bbc3d75e4df590c (patch)
tree10300dbb58d8266973b4505e377ee837ccd98313 /src/cmd/internal/obj/arm64/asm7.go
parent956d31ecd50fa11b66e4ad39a30677acb5616476 (diff)
downloadgo-6ed847431709c673adbb783d3bbc3d75e4df590c.tar.gz
go-6ed847431709c673adbb783d3bbc3d75e4df590c.zip
cmd/asm: remove unsupported opcodes MOVNP and STLP for arm64
ARM64 doesn't have MOVNP/MOVNPW and STLP/STLPW instructions, which are currently useless instructions as well. This CL deletes them. At the same time this CL sorts the opcodes by name, which looks cleaner. Change-Id: I25cfb636b23356ba0a50cba527a8c85b3f7e2ee4 Reviewed-on: https://go-review.googlesource.com/c/go/+/495695 Reviewed-by: Heschi Kreinick <heschi@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Run-TryBot: Eric Fang <eric.fang@arm.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/cmd/internal/obj/arm64/asm7.go')
-rw-r--r--src/cmd/internal/obj/arm64/asm7.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/cmd/internal/obj/arm64/asm7.go b/src/cmd/internal/obj/arm64/asm7.go
index 1a10c48bd8..76361577d4 100644
--- a/src/cmd/internal/obj/arm64/asm7.go
+++ b/src/cmd/internal/obj/arm64/asm7.go
@@ -6858,12 +6858,6 @@ func (c *ctxt7) opload(p *obj.Prog, a obj.As) uint32 {
case ALDXPW:
return LDSTX(2, 0, 1, 1, 0)
-
- case AMOVNP:
- return S64 | 0<<30 | 5<<27 | 0<<26 | 0<<23 | 1<<22
-
- case AMOVNPW:
- return S32 | 0<<30 | 5<<27 | 0<<26 | 0<<23 | 1<<22
}
c.ctxt.Diag("bad opload %v\n%v", a, p)
@@ -6881,12 +6875,6 @@ func (c *ctxt7) opstore(p *obj.Prog, a obj.As) uint32 {
case ASTLRH:
return LDSTX(1, 1, 0, 0, 1) | 0x1F<<10
- case ASTLP:
- return LDSTX(3, 0, 0, 1, 1)
-
- case ASTLPW:
- return LDSTX(2, 0, 0, 1, 1)
-
case ASTLRW:
return LDSTX(2, 1, 0, 0, 1) | 0x1F<<10
@@ -6925,12 +6913,6 @@ func (c *ctxt7) opstore(p *obj.Prog, a obj.As) uint32 {
case ASTXRW:
return LDSTX(2, 0, 0, 0, 0) | 0x1F<<10
-
- case AMOVNP:
- return S64 | 0<<30 | 5<<27 | 0<<26 | 0<<23 | 1<<22
-
- case AMOVNPW:
- return S32 | 0<<30 | 5<<27 | 0<<26 | 0<<23 | 1<<22
}
c.ctxt.Diag("bad opstore %v\n%v", a, p)