Skip to content

Commit ba525a6

Browse files
committed
Fixed register allocation
1 parent b7df636 commit ba525a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15044,7 +15044,7 @@ static zend_bool zend_jit_opline_supports_reg(const zend_op_array *op_array, zen
1504415044
case ZEND_MUL:
1504515045
op1_info = OP1_INFO();
1504615046
op2_info = OP2_INFO();
15047-
return !((op1_info | op2_info) & (MAY_BE_ANY - (MAY_BE_LONG|MAY_BE_DOUBLE)));
15047+
return !((op1_info | op2_info) & ((MAY_BE_ANY|MAY_BE_REF|MAY_BE_UNDEF) - (MAY_BE_LONG|MAY_BE_DOUBLE)));
1504815048
case ZEND_BW_OR:
1504915049
case ZEND_BW_AND:
1505015050
case ZEND_BW_XOR:
@@ -15053,13 +15053,13 @@ static zend_bool zend_jit_opline_supports_reg(const zend_op_array *op_array, zen
1505315053
case ZEND_MOD:
1505415054
op1_info = OP1_INFO();
1505515055
op2_info = OP2_INFO();
15056-
return !((op1_info | op2_info) & (MAY_BE_ANY - MAY_BE_LONG));
15056+
return !((op1_info | op2_info) & ((MAY_BE_ANY|MAY_BE_REF|MAY_BE_UNDEF) - MAY_BE_LONG));
1505715057
case ZEND_PRE_INC:
1505815058
case ZEND_PRE_DEC:
1505915059
case ZEND_POST_INC:
1506015060
case ZEND_POST_DEC:
1506115061
op1_info = OP1_INFO();
15062-
return opline->op1_type == IS_CV && !(op1_info & (MAY_BE_ANY - MAY_BE_LONG));
15062+
return opline->op1_type == IS_CV && !(op1_info & ((MAY_BE_ANY|MAY_BE_REF|MAY_BE_UNDEF) - MAY_BE_LONG));
1506315063
case ZEND_BOOL:
1506415064
case ZEND_BOOL_NOT:
1506515065
case ZEND_JMPZ:

0 commit comments

Comments
 (0)