Skip to content

Commit 2a33280

Browse files
committed
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: JIT: Make code generation to be consistent with register allocation
2 parents 5bab9e9 + fd74ee7 commit 2a33280

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
@@ -8233,7 +8233,7 @@ static int zend_jit_bool_jmpznz(dasm_State **Dst, const zend_op *opline, uint32_
82338233
}
82348234
}
82358235

8236-
if ((op1_info & MAY_BE_ANY) == MAY_BE_DOUBLE) {
8236+
if ((op1_info & (MAY_BE_ANY-(MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_LONG))) == MAY_BE_DOUBLE) {
82378237
|2:
82388238
| fmov FPR0, xzr // TODO: "movi d0, #0" is not recognized by DynASM/arm64
82398239
| 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
@@ -8820,7 +8820,7 @@ static int zend_jit_bool_jmpznz(dasm_State **Dst, const zend_op *opline, uint32_
88208820
}
88218821
}
88228822

8823-
if ((op1_info & MAY_BE_ANY) == MAY_BE_DOUBLE) {
8823+
if ((op1_info & (MAY_BE_ANY-(MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_LONG))) == MAY_BE_DOUBLE) {
88248824
|2:
88258825
if (CAN_USE_AVX()) {
88268826
| vxorps xmm0, xmm0, xmm0

0 commit comments

Comments
 (0)