X86: Fix the computation of the bottom part of rotate right with carry.
This commit is contained in:
parent
bab4597fc5
commit
c8b1a4583e
1 changed files with 1 additions and 1 deletions
|
@ -768,7 +768,7 @@ let {{
|
||||||
uint64_t top = flags.cf << (dataSize * 8 - shiftAmt);
|
uint64_t top = flags.cf << (dataSize * 8 - shiftAmt);
|
||||||
if(shiftAmt > 1)
|
if(shiftAmt > 1)
|
||||||
top |= psrc1 << (dataSize * 8 - 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);
|
DestReg = merge(DestReg, top | bottom, dataSize);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue