Skip to content

Commit 0fa154a

Browse files
committed
Fixed incorrect register allocation in ext/gd/tests/imagecopyresampled_variation1.phpt
1 parent e71036c commit 0fa154a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15382,7 +15382,9 @@ static zend_regset zend_jit_get_scratch_regset(const zend_op *opline, const zend
1538215382
regset = ZEND_REGSET_EMPTY;
1538315383
if (opline->op2_type == IS_CONST &&
1538415384
Z_TYPE_P(RT_CONSTANT(opline, opline->op2)) == IS_LONG &&
15385-
zend_long_is_power_of_two(Z_LVAL_P(RT_CONSTANT(opline, opline->op2)))) {
15385+
zend_long_is_power_of_two(Z_LVAL_P(RT_CONSTANT(opline, opline->op2))) &&
15386+
OP1_HAS_RANGE() &&
15387+
OP1_MIN_RANGE() >= 0) {
1538615388
if (ssa_op->result_def != current_var &&
1538715389
(ssa_op->op1_use != current_var || !last_use)) {
1538815390
ZEND_REGSET_INCL(regset, ZREG_R0);

0 commit comments

Comments
 (0)