Permalink
Browse files

irjit: Fix swr typo.

Shifting the wrong direction - oops.
  • Loading branch information...
unknownbrackets committed Jan 3, 2018
1 parent e789300 commit 64b57a032972bd8035cd44ff66e7c41652423edc
Showing with 1 addition and 1 deletion.
  1. +1 −1 Core/MIPS/IR/IRCompLoadStore.cpp
@@ -136,7 +136,7 @@ namespace MIPSComp {
ir.WriteSetConstant(maskReg, 0x00ffffff);
ir.Write(IROp::Neg, shiftReg, shiftReg);
ir.Write(IROp::AddConst, shiftReg, shiftReg, ir.AddConstant(24));
ir.Write(IROp::Shl, maskReg, maskReg, shiftReg);
ir.Write(IROp::Shr, maskReg, maskReg, shiftReg);
ir.Write(IROp::And, valueReg, valueReg, maskReg);
ir.Write(IROp::Neg, shiftReg, shiftReg);
ir.Write(IROp::AddConst, shiftReg, shiftReg, ir.AddConstant(24));

0 comments on commit 64b57a0

Please sign in to comment.