]> Cypherpunks repositories - gostls13.git/commit
cmd/asm: fix the encoding error of VCNT instruction for arm64
authoreric fang <eric.fang@arm.com>
Mon, 8 Jun 2020 03:19:43 +0000 (03:19 +0000)
committerCherry Zhang <cherryyz@google.com>
Tue, 9 Jun 2020 15:58:36 +0000 (15:58 +0000)
commite5e386938f4ace00c00de86ead47ed5c02961e5b
tree54a75c07f10ce723685a4f36d16e4007bcf45678
parente031318ca6da8db8a08ecff734ae72290dfb5f2d
cmd/asm: fix the encoding error of VCNT instruction for arm64

When the arrangement specifier is "B16", the 30-bit should be 1 rather than 0.
This CL fixes this error.

Fixes #39445

Change-Id: Ib44881cdb8b3aab855cb30f2c52a085cd73a6a2c
Reviewed-on: https://go-review.googlesource.com/c/go/+/236638
Run-TryBot: eric fang <eric.fang@arm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/asm/internal/asm/testdata/arm64enc.s
src/cmd/internal/obj/arm64/asm7.go