Permalink
Browse files

Minor cleanup

  • Loading branch information...
hrydgard committed Jan 9, 2018
1 parent 4a32ec3 commit fb0e81484bdb32f6480c763ce23802c9ffe68777
Showing with 5 additions and 5 deletions.
  1. +4 −4 Core/MIPS/IR/IRCompALU.cpp
  2. +1 −1 Core/MIPS/IR/IRFrontend.h
@@ -188,7 +188,7 @@ void IRFrontend::CompShiftImm(MIPSOpcode op, IROp shiftOpImm, int sa) {
ir.Write(shiftOpImm, rd, rt, sa);
}
void IRFrontend::CompShiftVar(MIPSOpcode op, IROp shiftOp, IROp shiftOpImm) {
void IRFrontend::CompShiftVar(MIPSOpcode op, IROp shiftOp) {
MIPSGPReg rd = _RD;
MIPSGPReg rt = _RT;
MIPSGPReg rs = _RS;
@@ -211,9 +211,9 @@ void IRFrontend::Comp_ShiftType(MIPSOpcode op) {
case 0: CompShiftImm(op, IROp::ShlImm, sa); break; //sll
case 2: CompShiftImm(op, (rs == 1 ? IROp::RorImm : IROp::ShrImm), sa); break; //srl
case 3: CompShiftImm(op, IROp::SarImm, sa); break; //sra
case 4: CompShiftVar(op, IROp::Shl, IROp::ShlImm); break; //sllv
case 6: CompShiftVar(op, (sa == 1 ? IROp::Ror : IROp::Shr), (sa == 1 ? IROp::RorImm : IROp::ShrImm)); break; //srlv
case 7: CompShiftVar(op, IROp::Sar, IROp::SarImm); break; //srav
case 4: CompShiftVar(op, IROp::Shl); break; //sllv
case 6: CompShiftVar(op, (sa == 1 ? IROp::Ror : IROp::Shr)); break; //srlv
case 7: CompShiftVar(op, IROp::Sar); break; //srav
default:
INVALIDOP;
@@ -122,7 +122,7 @@ class IRFrontend : public MIPSFrontendInterface {
// Utilities to reduce duplicated code
void CompShiftImm(MIPSOpcode op, IROp shiftType, int sa);
void CompShiftVar(MIPSOpcode op, IROp shiftType, IROp shiftTypeConst);
void CompShiftVar(MIPSOpcode op, IROp shiftType);
void ApplyPrefixST(u8 *vregs, u32 prefix, VectorSize sz, int tempReg);
void ApplyPrefixD(const u8 *vregs, VectorSize sz);

0 comments on commit fb0e814

Please sign in to comment.