Skip to content

Commit d8c6549

Browse files
committed
Merge branch 'PHP-8.1'
* PHP-8.1: JIT: Make code generation to be consistent with register allocation
2 parents 9313cd8 + 2a33280 commit d8c6549

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/opcache/jit/zend_jit_arm64.dasc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8131,7 +8131,7 @@ static int zend_jit_bool_jmpznz(dasm_State **Dst, const zend_op *opline, uint32_
81318131
}
81328132
}
81338133

8134-
if ((op1_info & MAY_BE_ANY) == MAY_BE_DOUBLE) {
8134+
if ((op1_info & (MAY_BE_ANY-(MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_LONG))) == MAY_BE_DOUBLE) {
81358135
|2:
81368136
| fmov FPR0, xzr // TODO: "movi d0, #0" is not recognized by DynASM/arm64
81378137
| DOUBLE_CMP ZREG_FPR0, op1_addr, ZREG_TMP1, ZREG_FPTMP

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8736,7 +8736,7 @@ static int zend_jit_bool_jmpznz(dasm_State **Dst, const zend_op *opline, uint32_
87368736
}
87378737
}
87388738

8739-
if ((op1_info & MAY_BE_ANY) == MAY_BE_DOUBLE) {
8739+
if ((op1_info & (MAY_BE_ANY-(MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_LONG))) == MAY_BE_DOUBLE) {
87408740
|2:
87418741
if (CAN_USE_AVX()) {
87428742
| vxorps xmm0, xmm0, xmm0

0 commit comments

Comments
 (0)