]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: make ppc64's CR subregisters print as CRn rather than Cn
authorRob Pike <r@golang.org>
Fri, 27 Feb 2015 20:36:15 +0000 (12:36 -0800)
committerRob Pike <r@golang.org>
Fri, 27 Feb 2015 21:06:25 +0000 (21:06 +0000)
commit2b417dc3e1814c1c251d2141dfb6438cf612b847
treea62415b220d525660f0af7a49de1c2c2267d9f53
parentd24e62f2fbeded2b27684d508236be7e3e931355
cmd/internal/obj: make ppc64's CR subregisters print as CRn rather than Cn

These 8 registers are windows into the CR register. They are officially CR0
through CR7 and that is what the assembler accepts, but for some reason
they have always printed as C0 through C7. Fix the naming and printing.

Change-Id: I55822c0322c29d3e01a1f2776b3b210ebf9ded21
Reviewed-on: https://go-review.googlesource.com/6290
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/9a/a.y
src/cmd/9a/lex.go
src/cmd/9a/y.go
src/cmd/asm/internal/arch/arch.go
src/cmd/asm/internal/arch/ppc64.go
src/cmd/asm/internal/asm/operand_test.go
src/cmd/asm/internal/asm/testdata/ppc64.out
src/cmd/internal/obj/ppc64/9.out.go
src/cmd/internal/obj/ppc64/asm9.go
src/cmd/internal/obj/ppc64/list9.go