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