Skip to content

Commit 44384df

Browse files
committed
Fixed temporary register usage
1 parent 59921aa commit 44384df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4101,7 +4101,7 @@ static int zend_jit_math_double_long(dasm_State **Dst,
41014101

41024102
if (Z_MODE(res_addr) == IS_REG) {
41034103
result_reg = Z_REG(res_addr);
4104-
tmp_reg = ZREG_XMM0;
4104+
tmp_reg = (result_reg == ZREG_XMM0) ? ZREG_XMM1 : ZREG_XMM0;
41054105
} else if (Z_MODE(op1_addr) == IS_REG && Z_LAST_USE(op1_addr)) {
41064106
result_reg = Z_REG(op1_addr);
41074107
tmp_reg = ZREG_XMM0;

0 commit comments

Comments
 (0)