0x3: decode FUNCTION_LO {
format IntOp {
0x0: mult({{
- int64_t temp1 = Rs.sw * Rt.sw;
+ int64_t temp1 = Rs.sd * Rt.sd;
xc->setMiscReg(Hi,temp1<63:32>);
xc->setMiscReg(Lo,temp1<31:0>);
}});
0x1: multu({{
- uint64_t temp1 = Rs.uw * Rt.uw;
- uint32_t hi_val = temp1<63:32>;
- uint32_t lo_val = temp1<31:0>;
- xc->setMiscReg(Hi,hi_val);
- xc->setMiscReg(Lo,lo_val);
+ uint64_t temp1 = Rs.ud * Rt.ud;
+ xc->setMiscReg(Hi,temp1<63:32>);
+ xc->setMiscReg(Lo,temp1<31:0>);
}});
0x2: div({{
}});
0x3: divu({{
- xc->setMiscReg(Hi,Rs.uw % Rt.uw);
- xc->setMiscReg(Lo,Rs.uw / Rt.uw);
+ xc->setMiscReg(Hi,Rs.uw % Rt.uw);
+ xc->setMiscReg(Lo,Rs.uw / Rt.uw);
}});
}
}
// it's generally implicit
if (_numDestRegs > 0) {
printReg(ss, _destRegIdx[0]);
+ ss << ",";
}
- ss << ",";
-
// just print the first two source regs... if there's
// a third one, it's a read-modify-write dest (Rc),
// e.g. for CMOVxx