When compiling with CODEBLOCK_STATIC_TOP, update TOP register with immediate moves rather than add/sub.

This commit is contained in:
SarahW 2019-01-28 17:40:28 +00:00
commit 6e5336ae56
5 changed files with 43 additions and 32 deletions

View file

@ -17,7 +17,7 @@ uint32_t ropFLD1(codeblock_t *block, ir_data_t *ir, uint8_t opcode, uint32_t fet
uop_MOV_IMM(ir, IREG_temp0, 1);
uop_MOV_DOUBLE_INT(ir, IREG_ST(-1), IREG_temp0);
uop_MOV_IMM(ir, IREG_tag(-1), TAG_VALID);
fpu_PUSH(ir);
fpu_PUSH(block, ir);
return op_pc;
}
@ -27,7 +27,7 @@ uint32_t ropFLDZ(codeblock_t *block, ir_data_t *ir, uint8_t opcode, uint32_t fet
uop_MOV_IMM(ir, IREG_temp0, 0);
uop_MOV_DOUBLE_INT(ir, IREG_ST(-1), IREG_temp0);
uop_MOV_IMM(ir, IREG_tag(-1), TAG_VALID);
fpu_PUSH(ir);
fpu_PUSH(block, ir);
return op_pc;
}