From: Gabe Black Date: Wed, 5 Aug 2009 10:00:43 +0000 (-0700) Subject: X86: Fix the computation of the upper part of rotate right with carry. X-Git-Tag: Calvin_Submission~174 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bab4597fc555dfe25b5d22c8634361e01bb2e981;p=gem5.git X86: Fix the computation of the upper part of rotate right with carry. --- diff --git a/src/arch/x86/isa/microops/regop.isa b/src/arch/x86/isa/microops/regop.isa index 2514be91a..1aa7c510b 100644 --- a/src/arch/x86/isa/microops/regop.isa +++ b/src/arch/x86/isa/microops/regop.isa @@ -767,7 +767,7 @@ let {{ CCFlagBits flags = ccFlagBits; uint64_t top = flags.cf << (dataSize * 8 - shiftAmt); if(shiftAmt > 1) - top |= psrc1 << (dataSize * 8 - shiftAmt - 1); + top |= psrc1 << (dataSize * 8 - shiftAmt + 1); uint64_t bottom = bits(psrc1, dataSize * 8, shiftAmt); DestReg = merge(DestReg, top | bottom, dataSize); }