X86: Let the integer multiply microop use every other possible source value.

This commit is contained in:
Gabe Black 2009-08-17 20:15:16 -07:00
parent cf2fc2613d
commit 200fed31de

View file

@ -919,8 +919,15 @@ let {{
uint64_t result = FpDestReg.uqw; uint64_t result = FpDestReg.uqw;
for (int i = 0; i < items; i++) { for (int i = 0; i < items; i++) {
int srcHiIndex = (i + 1) * srcBits - 1; int offset = 0;
int srcLoIndex = (i + 0) * srcBits; 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 arg1Bits = bits(FpSrcReg1.uqw, srcHiIndex, srcLoIndex);
uint64_t arg2Bits = bits(FpSrcReg2.uqw, srcHiIndex, srcLoIndex); uint64_t arg2Bits = bits(FpSrcReg2.uqw, srcHiIndex, srcLoIndex);
uint64_t resBits; uint64_t resBits;