Merge pull request #18004 from unknownbrackets/x86-jit-minor

x86jit: Small cleanup and tweaks, downcountInRegster, GetFPRLaneCount bugfix
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2023-08-29 08:01:47 +02:00
commit ae0af175de
8 files changed
+105 -57

No files matched your search

+5 -2
View File
@@ -46,8 +46,11 @@ void X64JitBackend::CompIR_Basic(IRInst inst) {
switch (inst.op) {
case IROp::Downcount:
//SUB(32, R(DOWNCOUNTREG), R(DOWNCOUNTREG), Imm32((s32)inst.constant));
SUB(32, MDisp(CTXREG, downcountOffset), Imm32((s32)inst.constant));
// As long as we don't care about flags, just use LEA.
if (jo.downcountInRegister)
LEA(32, DOWNCOUNTREG, MDisp(DOWNCOUNTREG, -(s32)inst.constant));
else
SUB(32, MDisp(CTXREG, downcountOffset), SImmAuto((s32)inst.constant));
break;
case IROp::SetConst: