• Ian Lance Taylor's avatar
    cmd/compile: base PPC64 trunc rules on final type, not op type · d585f04f
    Ian Lance Taylor authored
    Whether a truncation should become a MOVWreg or a MOVWZreg doesn't
    depend on the type of the operand, it depends on the type of the final
    result.  If the final result is unsigned, we can use MOVWZreg.  If the
    final result is signed, we can use MOVWreg.  Checking the type of the
    operand does the wrong thing if truncating an unsigned value to a
    signed value, or vice-versa.
    
    Fixes #29943
    
    Change-Id: Ia6fc7d006486fa02cffd0bec4d910bdd5b6365f8
    Reviewed-on: https://go-review.googlesource.com/c/159760
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarKeith Randall <khr@golang.org>
    d585f04f
Name
Last commit
Last update
..
386.rules Loading commit data...
386Ops.go Loading commit data...
AMD64.rules Loading commit data...
AMD64Ops.go Loading commit data...
ARM.rules Loading commit data...
ARM64.rules Loading commit data...
ARM64Ops.go Loading commit data...
ARMOps.go Loading commit data...
MIPS.rules Loading commit data...
MIPS64.rules Loading commit data...
MIPS64Ops.go Loading commit data...
MIPSOps.go Loading commit data...
PPC64.rules Loading commit data...
PPC64Ops.go Loading commit data...
README Loading commit data...
S390X.rules Loading commit data...
S390XOps.go Loading commit data...
Wasm.rules Loading commit data...
WasmOps.go Loading commit data...
dec.rules Loading commit data...
dec64.rules Loading commit data...
dec64Ops.go Loading commit data...
decArgs.rules Loading commit data...
decArgsOps.go Loading commit data...
decOps.go Loading commit data...
generic.rules Loading commit data...
genericOps.go Loading commit data...
main.go Loading commit data...
rulegen.go Loading commit data...