JIT: Make code generation to be consistent with register allocation

Fixes ext/opcache/tests/jit/add_014.phpt with opcache.jit=1205
This commit is contained in:
Dmitry Stogov 2022-08-22 19:53:33 +03:00
parent 73c2d79fc5
commit fd74ee7e90

View File

@ -8781,7 +8781,7 @@ static int zend_jit_bool_jmpznz(dasm_State **Dst, const zend_op *opline, uint32_
}
}
if ((op1_info & MAY_BE_ANY) == MAY_BE_DOUBLE) {
if ((op1_info & (MAY_BE_ANY-(MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_LONG))) == MAY_BE_DOUBLE) {
|2:
if (CAN_USE_AVX()) {
| vxorps xmm0, xmm0, xmm0