Added recompiled version of FILDq.
This commit is contained in:
parent
bce9ad4f3d
commit
589f50e479
21 changed files with 150 additions and 24 deletions
|
|
@ -755,6 +755,10 @@ static int codegen_MEM_LOAD_REG(codeblock_t *block, uop_t *uop)
|
|||
{
|
||||
host_x86_CALL(block, codegen_mem_load_long);
|
||||
}
|
||||
else if (REG_IS_Q(dest_size))
|
||||
{
|
||||
host_x86_CALL(block, codegen_mem_load_quad);
|
||||
}
|
||||
else
|
||||
fatal("MEM_LOAD_REG - %02x\n", uop->dest_reg_a_real);
|
||||
host_x86_TEST32_REG(block, REG_ESI, REG_ESI);
|
||||
|
|
@ -771,6 +775,10 @@ static int codegen_MEM_LOAD_REG(codeblock_t *block, uop_t *uop)
|
|||
{
|
||||
host_x86_MOV32_REG_REG(block, dest_reg, REG_ECX);
|
||||
}
|
||||
else if (REG_IS_Q(dest_size))
|
||||
{
|
||||
host_x86_MOVQ_XREG_XREG(block, dest_reg, REG_XMM_TEMP);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -1060,6 +1068,15 @@ static int codegen_MOV_DOUBLE_INT(codeblock_t *block, uop_t *uop)
|
|||
host_x86_MOVSX_REG_32_16(block, REG_ECX, src_reg);
|
||||
host_x86_CVTSI2SD_XREG_REG(block, dest_reg, REG_ECX);
|
||||
}
|
||||
else if (REG_IS_D(dest_size) && REG_IS_Q(src_size))
|
||||
{
|
||||
/*There is no SSE instruction to convert a 64-bit integer to a floating point value.
|
||||
Instead we have to bounce the integer through memory via x87.*/
|
||||
host_x86_MOVQ_BASE_OFFSET_XREG(block, REG_ESP, 0, src_reg);
|
||||
host_x87_FILDq_BASE(block, REG_ESP);
|
||||
host_x87_FSTPd_BASE(block, REG_ESP);
|
||||
host_x86_MOVQ_XREG_BASE_OFFSET(block, dest_reg, REG_ESP, 0);
|
||||
}
|
||||
else
|
||||
fatal("MOV_DOUBLE_INT %02x %02x\n", uop->dest_reg_a_real, uop->src_reg_a_real);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue