]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/obj/arm64: fix encoding error of FMOVD/FMOVS $0|ZR
authoreric fang <eric.fang@arm.com>
Wed, 24 Aug 2022 03:28:16 +0000 (03:28 +0000)
committerCherry Mui <cherryyz@google.com>
Mon, 29 Aug 2022 17:03:10 +0000 (17:03 +0000)
commiteeb1ba7a89975beb1993242d8f2db05a6237e01c
treeab2820f86ed551fbf3c822261bdeae72cb097584
parent739304978086143a5d8c3b9bfa4f9f25aef23e90
cmd/compile/obj/arm64: fix encoding error of FMOVD/FMOVS $0|ZR

Previously the first operand of FMOVD and FMOVS could be $0, which
would be converted to the ZR register. This is prohibited by CL 404316,
also it broken the encoding of "FMOVD/FMOVS ZR, Rn", this CL restores
this instruction format and fixes the encoding issue.

Fixes #54655.
Fixes #54729.

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