diff --git a/ext/opcache/jit/zend_jit_arm64.dasc b/ext/opcache/jit/zend_jit_arm64.dasc index cd06b7c3d57..cd29c6e68f4 100644 --- a/ext/opcache/jit/zend_jit_arm64.dasc +++ b/ext/opcache/jit/zend_jit_arm64.dasc @@ -1839,7 +1839,7 @@ static int zend_jit_exception_handler_undef_stub(dasm_State **Dst) | MEM_LOAD_ZTS ldr, REG0, executor_globals, opline_before_exception, REG0 | ldrb TMP1w, OP:REG0->result_type | TST_32_WITH_CONST TMP1w, (IS_TMP_VAR|IS_VAR), TMP2w - | bne >1 + | be >1 | ldr REG0w, OP:REG0->result.var | add REG0, REG0, FP | SET_Z_TYPE_INFO REG0, IS_UNDEF, TMP1w diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc index 441d083a5b8..80fbc2b99f2 100644 --- a/ext/opcache/jit/zend_jit_x86.dasc +++ b/ext/opcache/jit/zend_jit_x86.dasc @@ -1802,7 +1802,7 @@ static int zend_jit_exception_handler_undef_stub(dasm_State **Dst) |->exception_handler_undef: | MEM_OP2_2_ZTS mov, r0, aword, executor_globals, opline_before_exception, r0 | test byte OP:r0->result_type, (IS_TMP_VAR|IS_VAR) - | jnz >1 + | jz >1 | mov eax, dword OP:r0->result.var | SET_Z_TYPE_INFO FP + r0, IS_UNDEF |1: