xref: /PHP-8.4/ext/opcache/tests/jit/add_014.phpt (revision c16ad918)
1--TEST--
2JIT ADD: 014 incorrect guard elimination
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7--FILE--
8<?php
9function test() {
10	$s = null;
11    $i = $a + $a = $j = 2;
12    for ($a = 0; $i < 20; $a = !$a + $s .= 0xfff0001/34028236692903846346336*6) {
13	    $a = !$a + $a &= 74444444 - 444 >> 4 - $j++;
14        if ($j > 14) break;
15    }
16}
17try {
18    @test();
19} catch (Throwable $e) {
20	echo $e->getMessage() . "\n";
21}
22?>
23--EXPECT--
24Bit shift by negative number
25