]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/ppc64: eliminate ~700 conversions by tweaking signatures
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Fri, 4 Mar 2016 02:21:49 +0000 (15:21 +1300)
committerMichael Hudson-Doyle <michael.hudson@canonical.com>
Fri, 4 Mar 2016 06:30:25 +0000 (06:30 +0000)
commit060a2bacb7a8f5d75cfba16719eabb25b1b91fd7
treefb9e02e9fdda389023cae9ae12a0d528eb6fc745
parenta162d11540365fc54ab0db7ad8e449e7094a7beb
cmd/internal/obj/ppc64: eliminate ~700 conversions by tweaking signatures

This is mostly changing the opXXX helpers to take an int16 (matching Prog.As)
argument and return a uint32. The only bit that's not completely trivial is
passing -p.As to opirr to signal operating on a shifted constant, because AADD
+ ALAST overflows int16.

Change-Id: I69133800bbe41c38fa4a89bbbf49823043b3419c
Reviewed-on: https://go-review.googlesource.com/20182
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/internal/obj/ppc64/asm9.go