• Ian Lance Taylor's avatar
    cmd/internal/obj/ppc64: fix MOVFL REG, CONST · 555d1e36
    Ian Lance Taylor authored
    The MOVFL instruction (which external PPC64 docs call mtcrf) can take
    either a CR register or a constant. It doesn't make sense to specify
    both, as the CR register implies the constant value. Specifying either
    a register or a constant is enforced by the implementation in the
    asmout method (case 69).
    
    However, the optab was providing a form that specified both a constant
    and a CR register, and was not providing a form that specified only a
    constant. This CL fixes the optab table to provide a form that takes
    only a constant.
    
    No test because I don't know where to write it. The next CL in this
    series will use the new instruction format.
    
    Change-Id: I8bb5d3ed60f483b54c341ce613931e126f7d7be6
    Reviewed-on: https://go-review.googlesource.com/44732
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarLynn Boger <laboger@linux.vnet.ibm.com>
    555d1e36
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...