]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.5] cmd/internal/obj/ppc64: fix assembly of SRADCC with immediate
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Thu, 5 Nov 2015 21:10:07 +0000 (10:10 +1300)
committerAustin Clements <austin@google.com>
Tue, 17 Nov 2015 02:24:27 +0000 (02:24 +0000)
commit5dda3bc2fd0616f8789cc7f2919d2af49fc64a66
tree1ec96cff187b02bfe2fba90be2b80a01c8893df8
parentc0c730da28938b4ca920da67c5e143c007c505a7
[release-branch.go1.5] cmd/internal/obj/ppc64: fix assembly of SRADCC with immediate

sradi and sradi. hide the top bit of their immediate argument apart from the
rest of it, but the code only handled the sradi case.

I'm pretty sure this is the only instruction missing (a couple of the rotate
instructions encode their immediate the same way but their handling looks OK).

This fixes the failure of "GOARCH=amd64 ~/go/bin/go install -v runtime" as
reported in the bug.

Fixes #11987

Change-Id: I0cdefcd7a04e0e8fce45827e7054ffde9a83f589
Reviewed-on: https://go-review.googlesource.com/16710
Reviewed-by: Minux Ma <minux@golang.org>
Reviewed-on: https://go-review.googlesource.com/16983
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/internal/obj/ppc64/asm9.go
test/fixedbugs/issue11987.go [new file with mode: 0644]