Use ANDI2R instead of a BIC with a too large parameter

This commit is contained in:
Henrik Rydgård committed 2013-11-06 10:50:30 +01:00
1 parent e687b283f1
commit 9be3f8fc0a
1 file changed
+1 -1
+1 -1
View File
@@ -339,7 +339,7 @@ void Jit::Comp_mxc1(MIPSOpcode op)
BFI(gpr.R(rt), R0, 23, 1);
} else {
AND(R0, R0, Operand2(1)); // Just in case
BIC(gpr.R(rt), gpr.R(rt), Operand2(0x1 << 23));
ANDI2R(gpr.R(rt), gpr.R(rt), ~(0x1 << 23), R1); // R1 won't be used, this turns into a simple BIC.
ORR(gpr.R(rt), gpr.R(rt), Operand2(R0, ST_LSL, 23));
}
}