]> Cypherpunks repositories - gostls13.git/commit
[dev.cc] cmd/asm: add ppc64
authorRob Pike <r@golang.org>
Thu, 19 Feb 2015 04:30:55 +0000 (20:30 -0800)
committerRob Pike <r@golang.org>
Thu, 19 Feb 2015 05:12:20 +0000 (05:12 +0000)
commite559c5cce2f5bc48ad3c7ff75dec6cfa002115f1
tree96d78e9cdf1c3a4e48514533790c060e90e6b0a4
parent6acd5a65b2c8a27326528f5a9bb109e194c82258
[dev.cc] cmd/asm: add ppc64

Fairly straightforward. A couple of unusual addressing tricks.
Also added the ability to write R(10) to mean R10. PPC64 uses
this for a couple of large register spaces. It appears for ARM now
as well, since I saw some uses of that before, although I rewrote
them in our source. I could put it in for 386 and amd64 but it's
not worth it.

Change-Id: I3ffd7ffa62d511b95b92c3c75b9f1d621f5393b6
Reviewed-on: https://go-review.googlesource.com/5282
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/asm/internal/arch/arch.go
src/cmd/asm/internal/arch/arm.go
src/cmd/asm/internal/arch/ppc64.go [new file with mode: 0644]
src/cmd/asm/internal/asm/asm.go
src/cmd/asm/internal/asm/operand_test.go
src/cmd/asm/internal/asm/parse.go