]> Cypherpunks repositories - gostls13.git/commit
cmd/asm: add ARM64 assembler check for incorrect input
authorfanzha02 <fannie.zhang@arm.com>
Thu, 8 Mar 2018 10:33:14 +0000 (10:33 +0000)
committerCherry Zhang <cherryyz@google.com>
Mon, 19 Mar 2018 23:45:50 +0000 (23:45 +0000)
commit910c3a9dfc4ff8ea4c25d725783bce4887d790f2
tree19d0954999c23541b920cd0055575475051f3d46
parent7974f0815e071448cd429d7c30c1d6c24b04a589
cmd/asm: add ARM64 assembler check for incorrect input

Current ARM64 assembler has no check for the invalid value of both
shift amount and post-index immediate offset of LD1/ST1. This patch
adds the check.

This patch also fixes the printing error of register number equals
to 31, which should be printed as ZR instead of R31. Test cases
are also added.

Change-Id: I476235f3ab3a3fc91fe89c5a3149a4d4529c05c7
Reviewed-on: https://go-review.googlesource.com/100255
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
src/cmd/asm/internal/asm/testdata/arm64.s
src/cmd/asm/internal/asm/testdata/arm64error.s
src/cmd/internal/obj/arm64/asm7.go
src/cmd/internal/obj/arm64/list7.go
src/cmd/internal/obj/util.go