aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorRuinan <Ruinan.Sun@arm.com>2023-05-04 12:31:36 +0800
committerEric Fang <eric.fang@arm.com>2023-05-22 01:21:54 +0000
commitd75cc4b9c6e2acb4d0ed3d90c9a8b38094af281b (patch)
tree85157444462448b57fa065ac8bacf3a6f7686a7f /src/runtime
parent858c61b57ec30529d3b935ddf5d83a1702d2f251 (diff)
downloadgo-d75cc4b9c6e2acb4d0ed3d90c9a8b38094af281b.tar.xz
cmd/asm: encode instructions like SHA1SU0 with a separate case for arm64
Before this CL, instructions such as SHA1SU0, AESD and AESE are encoded in case 1 together with FMOV/ADD, and some error checking is missing, for example: SHA1SU0 V1.B16, V2.B16, V3.B16 // wrong data arrangement SHA1SU0 V1.4S, V2.S4, V3.S4 // correct Both will be accepted by the assembler, but the first one is totally incorrect. This CL fixes these potential encoding issues by moving them into separate cases, adds some error tests, and also fixes a wrong encoding operand for ASHA1C. Change-Id: Ic778321a567735d48bc34a1247ee005c4ed9e11f Reviewed-on: https://go-review.googlesource.com/c/go/+/493195 Run-TryBot: Cherry Mui <cherryyz@google.com> Reviewed-by: Heschi Kreinick <heschi@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions