mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
- more load fixes
This commit is contained in:
parent
4364feea9a
commit
3477b22714
1 changed files with 7 additions and 1 deletions
|
@ -51,7 +51,7 @@ void JitCompiler::EmitLKF_R()
|
||||||
void JitCompiler::EmitLKS_R()
|
void JitCompiler::EmitLKS_R()
|
||||||
{
|
{
|
||||||
auto ptr = cc.newIntPtr();
|
auto ptr = cc.newIntPtr();
|
||||||
cc.mov(ptr, ToMemAddress(konsts));
|
cc.mov(ptr, ToMemAddress(konsts + C));
|
||||||
auto offset = cc.newIntPtr();
|
auto offset = cc.newIntPtr();
|
||||||
cc.mov(offset, regD[B]);
|
cc.mov(offset, regD[B]);
|
||||||
#ifdef ASMJIT_ARCH_X64
|
#ifdef ASMJIT_ARCH_X64
|
||||||
|
@ -72,7 +72,13 @@ void JitCompiler::EmitLKP_R()
|
||||||
{
|
{
|
||||||
auto base = cc.newIntPtr();
|
auto base = cc.newIntPtr();
|
||||||
cc.mov(base, ToMemAddress(konsta + C));
|
cc.mov(base, ToMemAddress(konsta + C));
|
||||||
|
#ifdef ASMJIT_ARCH_X64
|
||||||
|
static_assert(sizeof(FVoidObj) == 8, "sizeof(FVoidObj) needs to be 8");
|
||||||
|
cc.mov(regA[A], asmjit::x86::ptr(base, regD[B], 3));
|
||||||
|
#else
|
||||||
|
static_assert(sizeof(FVoidObj) == 4, "sizeof(FVoidObj) needs to be 4");
|
||||||
cc.mov(regA[A], asmjit::x86::ptr(base, regD[B], 2));
|
cc.mov(regA[A], asmjit::x86::ptr(base, regD[B], 2));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void JitCompiler::EmitLFP()
|
void JitCompiler::EmitLFP()
|
||||||
|
|
Loading…
Reference in a new issue