Revision 9c7e37e7 target-ppc/op.c

b/target-ppc/op.c
2199 2199
/* XXX: those micro-ops need tests ! */
2200 2200
void OPPROTO op_POWER_abs (void)
2201 2201
{
2202
    if (T0 == INT32_MIN)
2202
    if ((int32_t)T0 == INT32_MIN)
2203 2203
        T0 = INT32_MAX;
2204
    else if (T0 < 0)
2204
    else if ((int32_t)T0 < 0)
2205 2205
        T0 = -T0;
2206 2206
    RETURN();
2207 2207
}

Also available in: Unified diff