eflags = cc_table[CC_OP].compute_all();
T0 &= DATA_MASK;
src = T0;
- res = (T0 << count) | ((eflags & CC_C) << (count - 1));
+ res = (T0 << count) | ((target_ulong)(eflags & CC_C) << (count - 1));
if (count > 1)
res |= T0 >> (DATA_BITS + 1 - count);
T0 = res;
eflags = cc_table[CC_OP].compute_all();
T0 &= DATA_MASK;
src = T0;
- res = (T0 >> count) | ((eflags & CC_C) << (DATA_BITS - count));
+ res = (T0 >> count) | ((target_ulong)(eflags & CC_C) << (DATA_BITS - count));
if (count > 1)
res |= T0 << (DATA_BITS + 1 - count);
T0 = res;