]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: add LDPW/LDPSW/STPW to arm64 assembler
authorBen Shi <powerman1st@163.com>
Sat, 10 Mar 2018 15:39:02 +0000 (15:39 +0000)
committerCherry Zhang <cherryyz@google.com>
Tue, 27 Mar 2018 19:13:17 +0000 (19:13 +0000)
commitfc7a72596bb325df3cdcb298c0a0ad2944421a1d
treece348efdf1457ac109f91b7e5ae02600eae826ee
parentaaeaad687065f45efedf2e070780b8db6ceb7f17
cmd/internal/obj/arm64: add LDPW/LDPSW/STPW to arm64 assembler

1. STPW stores the lower 32-bit words of a pair of registers to memory.
2. LDPW loads two 32-bit words from memory, zero extends them to 64-bit,
and then copies to a pair of registers.
3. LDPSW does the same as LDPW, except a sign extension.

This CL implements those 3 instructions and adds test cases.

Change-Id: Ied9834d8240240d23ce00e086b4ea456e1611f1a
Reviewed-on: https://go-review.googlesource.com/99956
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/asm/internal/asm/testdata/arm64.s
src/cmd/internal/obj/arm64/a.out.go
src/cmd/internal/obj/arm64/anames.go
src/cmd/internal/obj/arm64/anames7.go
src/cmd/internal/obj/arm64/asm7.go