]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm: check illegal base registers in ARM instructions
authorBen Shi <powerman1st@163.com>
Tue, 20 Jun 2017 03:03:12 +0000 (03:03 +0000)
committerCherry Zhang <cherryyz@google.com>
Fri, 30 Jun 2017 19:09:44 +0000 (19:09 +0000)
commitef26021d30ffb7edf8d1da5a3155e66d6e845a94
tree2bf5faf8984554396920889cab3a9063fc71013f
parent4b8bfa6352e8f67886dc1cd1eba92b248715bd11
cmd/internal/obj/arm: check illegal base registers in ARM instructions

Wrong instructions "MOVW 8(F0), R1" and "MOVW R0<<0(F1), R1"
are silently accepted, and all Fx are treated as Rx.

The patch checks all those illegal base registers.

fixes #20724

Change-Id: I05d41bb43fe774b023205163b7daf4a846e9dc88
Reviewed-on: https://go-review.googlesource.com/46132
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/asm/internal/asm/testdata/armerror.s
src/cmd/internal/obj/arm/asm5.go