]> Cypherpunks repositories - gostls13.git/commit
cmd/asm: fix encoding errors for FMOVD and FMOVS instructions on arm64
authoreric fang <eric.fang@arm.com>
Tue, 13 Jun 2023 10:02:33 +0000 (10:02 +0000)
committerEric Fang <eric.fang@arm.com>
Thu, 15 Jun 2023 01:59:49 +0000 (01:59 +0000)
commit9fc84363d1c317fd8d8f963de3bb10f8a8df05ac
tree57a11bc4bb834efce18057a7d81c173a5d68e9b9
parentda94586aa3767c38ccb625ac653e038bb842444a
cmd/asm: fix encoding errors for FMOVD and FMOVS instructions on arm64

The encoding of instructions "FMOVD F1, ZR" and "FMOVS F1, ZR" is wrong,
the assembler encodes them as "FMOVD F1, F31" and "FMOVS F1, F31". This
CL fixes the bug.

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