Commit 991041a4 authored by Richard Henderson's avatar Richard Henderson
Browse files

tcg-ppc64: Cleanup i32 constants to tcg_out_cmp



Nothing else in the call chain ensures that these
constants don't have garbage in the high bits.

Reviewed-by: default avatarAurelien Jarno <aurelien@aurel32.net>
Signed-off-by: default avatarRichard Henderson <rth@twiddle.net>
parent 4c314da6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1059,6 +1059,11 @@ static void tcg_out_cmp(TCGContext *s, int cond, TCGArg arg1, TCGArg arg2,
    int imm;
    uint32_t op;

    /* Simplify the comparisons below wrt CMPI.  */
    if (type == TCG_TYPE_I32) {
        arg2 = (int32_t)arg2;
    }

    switch (cond) {
    case TCG_COND_EQ:
    case TCG_COND_NE: