mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
softjit: Minor tweak to reg order for XCHG.
It's easier to use it in these places, but seems it stalls longer on the dest reg.
This commit is contained in:
parent
7f167c3660
commit
932481d3cd
2 changed files with 2 additions and 2 deletions
|
@ -1072,7 +1072,7 @@ bool PixelJitCache::Jit_Dither(const PixelFuncID &id) {
|
|||
regCache_.GrabReg(RCX, PixelRegCache::TEMP1, PixelRegCache::T_GEN, needsSwap, argXReg);
|
||||
|
||||
if (needsSwap) {
|
||||
XCHG(PTRBITS, R(RCX), R(argXReg));
|
||||
XCHG(PTRBITS, R(argXReg), R(RCX));
|
||||
if (valueReg == RCX)
|
||||
valueReg = argXReg;
|
||||
} else {
|
||||
|
|
|
@ -493,7 +493,7 @@ bool SamplerJitCache::Jit_GetDXT1Color(const SamplerID &id, int blockSize, int a
|
|||
// Let's swap the regs in that case.
|
||||
CMP(32, R(tempReg1), Imm32(2));
|
||||
FixupBranch skipSwap23 = J_CC(CC_E);
|
||||
XCHG(32, R(bufwReg), R(tempReg2));
|
||||
XCHG(32, R(tempReg2), R(bufwReg));
|
||||
SetJumpTarget(skipSwap23);
|
||||
|
||||
// Start off with R, adding together first...
|
||||
|
|
Loading…
Add table
Reference in a new issue