xref: /php-src/ext/opcache/tests/jit/mul_002.phpt (revision c16ad918)
1--TEST--
2JIT MUL: 002 integer overflow
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7;opcache.jit_debug=257
8--EXTENSIONS--
9opcache
10--SKIPIF--
11<?php
12if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
13?>
14--FILE--
15<?php
16function mul(int $a, int $b) {
17  $res = $a * $b;
18  var_dump($res);
19}
20mul(0x5555555555, 0x5555555555);
21?>
22--EXPECT--
23float(1.343250910680478E+23)
24