Skip to content

Commit

Permalink
Fixed incorrect register allocation in ext/gd/tests/imagecopyresample…
Browse files Browse the repository at this point in the history
…d_variation1.phpt
  • Loading branch information
dstogov committed Oct 26, 2020
1 parent e71036c commit 0fa154a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/opcache/jit/zend_jit_x86.dasc
Original file line number Diff line number Diff line change
Expand Up @@ -15382,7 +15382,9 @@ static zend_regset zend_jit_get_scratch_regset(const zend_op *opline, const zend
regset = ZEND_REGSET_EMPTY;
if (opline->op2_type == IS_CONST &&
Z_TYPE_P(RT_CONSTANT(opline, opline->op2)) == IS_LONG &&
zend_long_is_power_of_two(Z_LVAL_P(RT_CONSTANT(opline, opline->op2)))) {
zend_long_is_power_of_two(Z_LVAL_P(RT_CONSTANT(opline, opline->op2))) &&
OP1_HAS_RANGE() &&
OP1_MIN_RANGE() >= 0) {
if (ssa_op->result_def != current_var &&
(ssa_op->op1_use != current_var || !last_use)) {
ZEND_REGSET_INCL(regset, ZREG_R0);
Expand Down

0 comments on commit 0fa154a

Please sign in to comment.