diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-08-17 20:15:16 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-08-17 20:15:16 -0700 |
commit | 200fed31de52ec783006bb1d7c1dbcc4112e7fb3 (patch) | |
tree | 306b3da0de09db307f00ce3593f43d4a9c73f287 /src/arch/x86 | |
parent | cf2fc2613d7b80f72e886fb89ab7e347889994fd (diff) | |
download | gem5-200fed31de52ec783006bb1d7c1dbcc4112e7fb3.tar.xz |
X86: Let the integer multiply microop use every other possible source value.
Diffstat (limited to 'src/arch/x86')
-rw-r--r-- | src/arch/x86/isa/microops/mediaop.isa | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/arch/x86/isa/microops/mediaop.isa b/src/arch/x86/isa/microops/mediaop.isa index 52292cbd1..7e7016368 100644 --- a/src/arch/x86/isa/microops/mediaop.isa +++ b/src/arch/x86/isa/microops/mediaop.isa @@ -919,8 +919,15 @@ let {{ uint64_t result = FpDestReg.uqw; for (int i = 0; i < items; i++) { - int srcHiIndex = (i + 1) * srcBits - 1; - int srcLoIndex = (i + 0) * srcBits; + int offset = 0; + if (ext & 16) { + if (ext & 32) + offset = i * (destBits - srcBits); + else + offset = i * (destBits - srcBits) + srcBits; + } + int srcHiIndex = (i + 1) * srcBits - 1 + offset; + int srcLoIndex = (i + 0) * srcBits + offset; uint64_t arg1Bits = bits(FpSrcReg1.uqw, srcHiIndex, srcLoIndex); uint64_t arg2Bits = bits(FpSrcReg2.uqw, srcHiIndex, srcLoIndex); uint64_t resBits; |