]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: clean up handling of register list operand on ARM
authorRob Pike <r@golang.org>
Fri, 27 Feb 2015 21:50:26 +0000 (13:50 -0800)
committerRob Pike <r@golang.org>
Sat, 28 Feb 2015 20:10:59 +0000 (20:10 +0000)
commit0eeb5cf088bbfd21f500e132fc4bb9a149376246
tree432fe2f2f5efddf4db260842ba5039cf21dd8ce4
parentbc9748ee6bfba3632ab9c98c8dd475d8eacf41b3
cmd/internal/obj: clean up handling of register list operand on ARM

ARM operands for MOVM have lists of registers: [R1,R2,R5-R8].
Handle them cleanly.

It was TYPE_CONST with special handling, which meant operand printing
didn't work right and the special handling was ugly. Add a new TYPE_REGLIST
for this case and it all gets cleaner.

Change-Id: I4a64f70fb9765e63cb636619a7a8553611bfe970
Reviewed-on: https://go-review.googlesource.com/6300
Run-TryBot: Rob Pike <r@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/5a/a.y
src/cmd/5a/y.go
src/cmd/asm/internal/asm/operand_test.go
src/cmd/asm/internal/asm/parse.go
src/cmd/asm/internal/asm/testdata/arm.out
src/cmd/internal/obj/arm/5.out.go
src/cmd/internal/obj/arm/asm5.go
src/cmd/internal/obj/arm/list5.go
src/cmd/internal/obj/link.go
src/cmd/internal/obj/pass.go
src/cmd/internal/obj/util.go