mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-20 16:41:02 +00:00
Fix JIT pointer offsets
This commit is contained in:
parent
f9bf6f9311
commit
519f9f4298
2 changed files with 7 additions and 7 deletions
|
@ -342,7 +342,7 @@ void JitCompiler::EmitLFV2_R()
|
|||
auto tmp = newTempIntPtr();
|
||||
cc.lea(tmp, asmjit::x86::qword_ptr(regA[B], regD[C]));
|
||||
cc.movss(regF[A], asmjit::x86::qword_ptr(tmp));
|
||||
cc.movss(regF[A + 1], asmjit::x86::qword_ptr(tmp, 8));
|
||||
cc.movss(regF[A + 1], asmjit::x86::qword_ptr(tmp, 4));
|
||||
cc.cvtss2sd(regF[A], regF[A]);
|
||||
cc.cvtss2sd(regF[A + 1], regF[A + 1]);
|
||||
}
|
||||
|
@ -353,8 +353,8 @@ void JitCompiler::EmitLFV3()
|
|||
auto tmp = newTempIntPtr();
|
||||
cc.lea(tmp, asmjit::x86::qword_ptr(regA[B], konstd[C]));
|
||||
cc.movss(regF[A], asmjit::x86::qword_ptr(tmp));
|
||||
cc.movss(regF[A + 1], asmjit::x86::qword_ptr(tmp, 8));
|
||||
cc.movss(regF[A + 2], asmjit::x86::qword_ptr(tmp, 16));
|
||||
cc.movss(regF[A + 1], asmjit::x86::qword_ptr(tmp, 4));
|
||||
cc.movss(regF[A + 2], asmjit::x86::qword_ptr(tmp, 8));
|
||||
cc.cvtss2sd(regF[A], regF[A]);
|
||||
cc.cvtss2sd(regF[A + 1], regF[A + 1]);
|
||||
cc.cvtss2sd(regF[A + 2], regF[A + 2]);
|
||||
|
@ -366,8 +366,8 @@ void JitCompiler::EmitLFV3_R()
|
|||
auto tmp = newTempIntPtr();
|
||||
cc.lea(tmp, asmjit::x86::qword_ptr(regA[B], regD[C]));
|
||||
cc.movss(regF[A], asmjit::x86::qword_ptr(tmp));
|
||||
cc.movss(regF[A + 1], asmjit::x86::qword_ptr(tmp, 8));
|
||||
cc.movss(regF[A + 2], asmjit::x86::qword_ptr(tmp, 16));
|
||||
cc.movss(regF[A + 1], asmjit::x86::qword_ptr(tmp, 4));
|
||||
cc.movss(regF[A + 2], asmjit::x86::qword_ptr(tmp, 8));
|
||||
cc.cvtss2sd(regF[A], regF[A]);
|
||||
cc.cvtss2sd(regF[A + 1], regF[A + 1]);
|
||||
cc.cvtss2sd(regF[A + 2], regF[A + 2]);
|
||||
|
|
|
@ -201,7 +201,7 @@ void JitCompiler::EmitSFV3()
|
|||
cc.cvtsd2ss(tmpF, regF[B + 1]);
|
||||
cc.movss(asmjit::x86::qword_ptr(tmp, 4), tmpF);
|
||||
cc.cvtsd2ss(tmpF, regF[B + 2]);
|
||||
cc.movss(asmjit::x86::qword_ptr(tmp, 4), tmpF);
|
||||
cc.movss(asmjit::x86::qword_ptr(tmp, 8), tmpF);
|
||||
}
|
||||
|
||||
void JitCompiler::EmitSFV3_R()
|
||||
|
@ -216,7 +216,7 @@ void JitCompiler::EmitSFV3_R()
|
|||
cc.cvtsd2ss(tmpF, regF[B + 1]);
|
||||
cc.movss(asmjit::x86::qword_ptr(tmp, 4), tmpF);
|
||||
cc.cvtsd2ss(tmpF, regF[B + 2]);
|
||||
cc.movss(asmjit::x86::qword_ptr(tmp, 4), tmpF);
|
||||
cc.movss(asmjit::x86::qword_ptr(tmp, 8), tmpF);
|
||||
}
|
||||
|
||||
void JitCompiler::EmitSBIT()
|
||||
|
|
Loading…
Reference in a new issue