]> Cypherpunks repositories - gostls13.git/commit
cmd/asm: fix ARM64 vector register arrangement encoding bug
authorfanzha02 <fannie.zhang@arm.com>
Mon, 5 Mar 2018 07:48:28 +0000 (07:48 +0000)
committerCherry Zhang <cherryyz@google.com>
Mon, 12 Mar 2018 15:05:53 +0000 (15:05 +0000)
commitfdf5aaf5555692a9e03a65df1aba06aa4a09052b
tree54cbde62230009ef463062d1a59274a11ad80f0f
parent140bfe9cfea0861f53975007721077811da51af1
cmd/asm: fix ARM64 vector register arrangement encoding bug

The current code assigns vector register arrangement a wrong value
when the arrangement specifier is S2, which causes the incorrect
assembly.

The patch fixes the issue and adds the test cases.

Fixes #24249

Change-Id: I9736df1279494003d0b178da1af9cee9cd85ce21
Reviewed-on: https://go-review.googlesource.com/98555
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/asm/internal/arch/arm64.go
src/cmd/asm/internal/asm/testdata/arm64.s