]> Cypherpunks repositories - gostls13.git/commit
[dev.cc] cmd/asm: bring asm on ppc64 in sync with 9a
authorRob Pike <r@golang.org>
Fri, 20 Feb 2015 00:34:51 +0000 (16:34 -0800)
committerRob Pike <r@golang.org>
Fri, 20 Feb 2015 00:42:09 +0000 (00:42 +0000)
commit5b9429d122ae5e4d9a296857343a96b8c1d3dbd6
treeec1f8b4fc943ab6d98c2887f2f1f7616e348972f
parentc21f1d5ef30ff52cb42fca146a9c7161dfee5c3c
[dev.cc] cmd/asm: bring asm on ppc64 in sync with 9a

I created a .s file that covered every instruction and operand production
in 9a/a.y and made sure that 9a and asm give bit-identical results for it.
I found a few things, including one addressing mode (R1+R2) that was
not present in the source we use. Fixed those

I also found quite a few things where 9a's grammar accepts the instruction
but liblink rejects it. These need to be sorted out, and I will do that separately.
Once that's done, I'll turn my test file into a proper test.

Change-Id: Ib093271b0f7ffd64ffed164ed2a820ebf2420e34
Reviewed-on: https://go-review.googlesource.com/5361
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/asm/internal/arch/ppc64.go
src/cmd/asm/internal/asm/asm.go
src/cmd/asm/internal/asm/operand_test.go
src/cmd/asm/internal/asm/parse.go