[php-src] jit-arm64: Skip 64-bit related tests on 32-bit platforms
| From: | Dmitry Stogov | Date: | Thu, 29 Apr 2021 12:32:27 +0000 |
| Subject: | [php-src] jit-arm64: Skip 64-bit related tests on 32-bit platforms | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-115966@lists.php.net to get a copy of this message | ||
Author: Dmitry Stogov (dstogov)
Date: 2021-04-29T15:31:40+03:00
Commit: https://github.com/php/php-src/commit/cd0dadf4ec83cd9f41fa85a5e661649808b2b0f3
Raw diff: https://github.com/php/php-src/commit/cd0dadf4ec83cd9f41fa85a5e661649808b2b0f3.diff
Skip 64-bit related tests on 32-bit platforms
Changed paths:
M ext/opcache/tests/jit/add_003.phpt
M ext/opcache/tests/jit/add_004.phpt
M ext/opcache/tests/jit/inc_021.phpt
M ext/opcache/tests/jit/mul_002.phpt
M ext/opcache/tests/jit/mul_003.phpt
M ext/opcache/tests/jit/mul_004.phpt
Diff:
diff --git a/ext/opcache/tests/jit/add_003.phpt b/ext/opcache/tests/jit/add_003.phpt
index ca01ce797b8e..70e814968b12 100644
--- a/ext/opcache/tests/jit/add_003.phpt
+++ b/ext/opcache/tests/jit/add_003.phpt
@@ -8,6 +8,10 @@ opcache.jit_buffer_size=32M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
+--SKIPIF--
+<?php
+if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
+?>
--FILE--
<?php
function foo($var) {
diff --git a/ext/opcache/tests/jit/add_004.phpt b/ext/opcache/tests/jit/add_004.phpt
index 67aa8f10fa46..761ead9e8aba 100644
--- a/ext/opcache/tests/jit/add_004.phpt
+++ b/ext/opcache/tests/jit/add_004.phpt
@@ -8,6 +8,10 @@ opcache.jit_buffer_size=32M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
+--SKIPIF--
+<?php
+if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
+?>
--FILE--
<?php
function foo($var) {
diff --git a/ext/opcache/tests/jit/inc_021.phpt b/ext/opcache/tests/jit/inc_021.phpt
index 2966d7b264d3..bfc1e73f8217 100644
--- a/ext/opcache/tests/jit/inc_021.phpt
+++ b/ext/opcache/tests/jit/inc_021.phpt
@@ -9,6 +9,10 @@ opcache.protect_memory=1
;opcache.jit_debug=257
--EXTENSIONS--
opcache
+--SKIPIF--
+<?php
+if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
+?>
--FILE--
<?php
function inc(int|float $x) {
diff --git a/ext/opcache/tests/jit/mul_002.phpt b/ext/opcache/tests/jit/mul_002.phpt
index 3c8eddb56c09..eecedc11a844 100644
--- a/ext/opcache/tests/jit/mul_002.phpt
+++ b/ext/opcache/tests/jit/mul_002.phpt
@@ -8,6 +8,10 @@ opcache.jit_buffer_size=32M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
+--SKIPIF--
+<?php
+if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
+?>
--FILE--
<?php
function mul(int $a, int $b) {
diff --git a/ext/opcache/tests/jit/mul_003.phpt b/ext/opcache/tests/jit/mul_003.phpt
index 7404e8692678..5042cd6c3acb 100644
--- a/ext/opcache/tests/jit/mul_003.phpt
+++ b/ext/opcache/tests/jit/mul_003.phpt
@@ -8,6 +8,10 @@ opcache.jit_buffer_size=32M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
+--SKIPIF--
+<?php
+if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
+?>
--FILE--
<?php
diff --git a/ext/opcache/tests/jit/mul_004.phpt b/ext/opcache/tests/jit/mul_004.phpt
index 438e4325245a..7154ecc53db0 100644
--- a/ext/opcache/tests/jit/mul_004.phpt
+++ b/ext/opcache/tests/jit/mul_004.phpt
@@ -8,6 +8,10 @@ opcache.jit_buffer_size=32M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
+--SKIPIF--
+<?php
+if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
+?>
--FILE--
<?php