X86: Fix the computation of the bottom part of rotate right with carry.
This commit is contained in:
parent
bab4597fc5
commit
c8b1a4583e
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue