X86: Fix the computation of the bottom part of rotate right with carry.

This commit is contained in:
Gabe Black 2009-08-05 03:01:07 -07:00
parent bab4597fc5
commit c8b1a4583e

View file

@ -768,7 +768,7 @@ let {{
uint64_t top = flags.cf << (dataSize * 8 - shiftAmt);
if(shiftAmt > 1)
top |= psrc1 << (dataSize * 8 - shiftAmt + 1);
uint64_t bottom = bits(psrc1, dataSize * 8, shiftAmt);
uint64_t bottom = bits(psrc1, dataSize * 8 - 1, shiftAmt);
DestReg = merge(DestReg, top | bottom, dataSize);
}
else