JIT64: use xor instead of mov for loading a zero regcache immediate
This commit is contained in:
parent
27996a65cf
commit
ad51fc7c4b
|
@ -299,6 +299,9 @@ void RegCache::StoreFromRegister(size_t i, FlushMode mode)
|
|||
|
||||
void GPRRegCache::LoadRegister(size_t preg, X64Reg newLoc)
|
||||
{
|
||||
if (regs[preg].location.IsImm() && !regs[preg].location.offset)
|
||||
emit->XOR(32, ::Gen::R(newLoc), ::Gen::R(newLoc));
|
||||
else
|
||||
emit->MOV(32, ::Gen::R(newLoc), regs[preg].location);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue