]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm: remove illegal form of the SWI instruction
authorBen Shi <powerman1st@163.com>
Tue, 16 May 2017 11:36:54 +0000 (11:36 +0000)
committerCherry Zhang <cherryyz@google.com>
Thu, 18 May 2017 13:38:13 +0000 (13:38 +0000)
commitc7cae34b194d6b189d5ae3dab5d331ba7c3b4fa9
treee7b846e87c1aa774c9c2a1aca4264c92fcf22212
parent0927b4728defe3270f3d737d11cfb4d89493c435
cmd/internal/obj/arm: remove illegal form of the SWI instruction

SWI only support "SWI $imm", but currently "SWI (Reg)" is also
accepted. This patch fixes it.

And more instruction tests are added to cmd/asm/internal/asm/testdata/arm.s

fixes #20375

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