1
0
mirror of https://github.com/golang/go synced 2024-11-14 15:20:43 -07:00
go/src/cmd/asm
Ben Shi c7cae34b19 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>
2017-05-18 13:38:13 +00:00
..
internal cmd/internal/obj/arm: remove illegal form of the SWI instruction 2017-05-18 13:38:13 +00:00
doc.go
main.go cmd/internal/objabi: extract shared functionality from obj 2017-04-19 00:00:09 +00:00