mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-13 16:07:45 +00:00
- avoid certain x86::ptr overloads as the last argument is not always an offset
This commit is contained in:
parent
c505e4eb79
commit
06b54d3aaa
1 changed files with 4 additions and 4 deletions
|
@ -36,14 +36,14 @@ void JitCompiler::EmitLKP()
|
||||||
|
|
||||||
void JitCompiler::EmitLK_R()
|
void JitCompiler::EmitLK_R()
|
||||||
{
|
{
|
||||||
cc.mov(regD[A], asmjit::x86::ptr(ToMemAddress(konstd), regD[B], 2, C * sizeof(int32_t)));
|
cc.mov(regD[A], asmjit::x86::ptr(ToMemAddress(konstd + C), regD[B], 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
void JitCompiler::EmitLKF_R()
|
void JitCompiler::EmitLKF_R()
|
||||||
{
|
{
|
||||||
auto tmp = cc.newIntPtr();
|
auto tmp = cc.newIntPtr();
|
||||||
cc.mov(tmp, ToMemAddress(konstf));
|
cc.mov(tmp, ToMemAddress(konstf + C));
|
||||||
cc.movsd(regF[A], asmjit::x86::qword_ptr(tmp, regD[B], 3, C * sizeof(double)));
|
cc.movsd(regF[A], asmjit::x86::qword_ptr(tmp, regD[B], 3));
|
||||||
}
|
}
|
||||||
|
|
||||||
void JitCompiler::EmitLKS_R()
|
void JitCompiler::EmitLKS_R()
|
||||||
|
@ -68,7 +68,7 @@ void JitCompiler::EmitLKS_R()
|
||||||
|
|
||||||
void JitCompiler::EmitLKP_R()
|
void JitCompiler::EmitLKP_R()
|
||||||
{
|
{
|
||||||
cc.mov(regA[A], asmjit::x86::ptr(ToMemAddress(konsta), regD[B], 2, C * sizeof(void*)));
|
cc.mov(regA[A], asmjit::x86::ptr(ToMemAddress(konsta + C), regD[B], 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
void JitCompiler::EmitLFP()
|
void JitCompiler::EmitLFP()
|
||||||
|
|
Loading…
Reference in a new issue