]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/internal/obj/arm64: fix invalid register pair for LDP
authoreric fang <eric.fang@arm.com>
Wed, 6 Dec 2023 03:41:13 +0000 (03:41 +0000)
committerEric Fang <eric.fang@arm.com>
Fri, 8 Dec 2023 03:28:17 +0000 (03:28 +0000)
commit78b42a5338aa1fa293acc5bbb7ef9122a7acc2ba
tree2ec1cffa189acf81fd98d6ba6630d1dfa1c2912d
parent4bf1ca4b0ce9a08f4c45d68fe49857914f668f69
cmd/internal/obj/arm64: fix invalid register pair for LDP

ZR register can be used in register pair of LDP, LDPW and LDPSW
instructions, but now it's not allowed. This CL fixes this issue.

Change-Id: I8467502de4664214e0b7dad0295c44f6cff16ee6
Reviewed-on: https://go-review.googlesource.com/c/go/+/547815
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Eric Fang <eric.fang@arm.com>
src/cmd/asm/internal/asm/testdata/arm64.s
src/cmd/asm/internal/asm/testdata/arm64error.s
src/cmd/internal/obj/arm64/asm7.go