Use MOVZX on x86-64 when loading a word sized function parameter. Fixes issues when built with LLVM and -O3.
This commit is contained in:
parent
b26432caa8
commit
93a5925f02
1 changed files with 2 additions and 2 deletions
|
|
@ -771,9 +771,9 @@ static int codegen_LOAD_FUNC_ARG0(codeblock_t *block, uop_t *uop)
|
|||
if (REG_IS_W(src_size))
|
||||
{
|
||||
#if WIN64
|
||||
host_x86_MOV16_REG_REG(block, REG_ECX, src_reg);
|
||||
host_x86_MOVZX_REG_32_16(block, REG_ECX, src_reg);
|
||||
#else
|
||||
host_x86_MOV16_REG_REG(block, REG_EDI, src_reg);
|
||||
host_x86_MOVZX_REG_32_16(block, REG_EDI, src_reg);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue