• Lynn Boger's avatar
    cmd/compile: request r12 for indirect calls on ppc64le · b74b43de
    Lynn Boger authored
    On ppc64le, functions compiled with -shared expect r12 to
    hold the function's address for indirect calls. Previously
    this was enforced by generating a move instruction if the
    address wasn't already in r12. This change avoids that extra
    move by requesting r12 in the CALL ops that do indirect calls.
    
    As a result of adding support for plugins on ppc64le, it was
    discovered that there would be more cases where this extra
    move was needed, so this seemed like a better solution.
    
    Updates #20756
    
    Change-Id: I6770885a46990f78c6d2902a715dcdaa822192a1
    Reviewed-on: https://go-review.googlesource.com/62890
    Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarDavid Crawshaw <crawshaw@golang.org>
    Reviewed-by: 's avatarCherry Zhang <cherryyz@google.com>
    b74b43de
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...