]> Cypherpunks repositories - gostls13.git/commit
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)
committerMichael Hudson-Doyle <michael.hudson@canonical.com>
Thu, 5 Nov 2015 22:54:21 +0000 (22:54 +0000)
commit10c075376183a6c5d586df8e0f5e702ae9b99e84
treeee600f43d567873ec9faa26156d1f46451909f11
parentb4447a1e819e1c76d338d4597858013ede2e2280
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>
src/cmd/internal/obj/ppc64/asm9.go
test/fixedbugs/issue11987.go [new file with mode: 0644]