Skip to content

Commit 941b55f

Browse files
committed
Fixed JIT failure after overflow detection (bench.php failure in 32-bit
build with -d opcache.jit=1254 -d opcache.jit_hot_loop=1 -d opcache.jit_hot_func=1 -d opcache.jit_hot_return=1 -d opcache.jit_hot_side_exit=1)
1 parent 680d198 commit 941b55f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4233,7 +4233,7 @@ static int zend_jit_math_long_long(dasm_State **Dst,
42334233
} else {
42344234
result_reg = Z_REG(res_addr);
42354235
}
4236-
} else if (Z_MODE(op1_addr) == IS_REG && Z_LAST_USE(op1_addr)) {
4236+
} else if (Z_MODE(op1_addr) == IS_REG && Z_LAST_USE(op1_addr) && !may_overflow) {
42374237
result_reg = Z_REG(op1_addr);
42384238
} else if (Z_REG(res_addr) != ZREG_R0) {
42394239
result_reg = ZREG_R0;

0 commit comments

Comments
 (0)