mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-25 05:21:02 +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()
|
||||
{
|
||||
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()
|
||||
{
|
||||
auto tmp = cc.newIntPtr();
|
||||
cc.mov(tmp, ToMemAddress(konstf));
|
||||
cc.movsd(regF[A], asmjit::x86::qword_ptr(tmp, regD[B], 3, C * sizeof(double)));
|
||||
cc.mov(tmp, ToMemAddress(konstf + C));
|
||||
cc.movsd(regF[A], asmjit::x86::qword_ptr(tmp, regD[B], 3));
|
||||
}
|
||||
|
||||
void JitCompiler::EmitLKS_R()
|
||||
|
@ -68,7 +68,7 @@ void JitCompiler::EmitLKS_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()
|
||||
|
|
Loading…
Reference in a new issue