From 200fed31de52ec783006bb1d7c1dbcc4112e7fb3 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 17 Aug 2009 20:15:16 -0700 Subject: X86: Let the integer multiply microop use every other possible source value. --- src/arch/x86/isa/microops/mediaop.isa | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/arch/x86') 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; -- cgit v1.2.3