[php-src] jit-arm64: Support failed JIT test case: assign_027.phpt
| From: | Hao Sun via Dmitry Stogov | Date: | Thu, 29 Apr 2021 08:04:03 +0000 |
| Subject: | [php-src] jit-arm64: Support failed JIT test case: assign_027.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-115952@lists.php.net to get a copy of this message | ||
Author: Hao Sun (shqking)
Committer: Dmitry Stogov (dstogov)
Date: 2021-04-29T10:55:32+03:00
Commit: https://github.com/php/php-src/commit/132e6751c34ff24038fd7dbab9bda9e68aa63516
Raw diff: https://github.com/php/php-src/commit/132e6751c34ff24038fd7dbab9bda9e68aa63516.diff
Support failed JIT test case: assign_027.phpt
This patch is trivial, supporting the comparion with constant values,
i.e. "$i < 2" in this test case.
Changed paths:
M ext/opcache/jit/zend_jit_arm64.dasc
Diff:
diff --git a/ext/opcache/jit/zend_jit_arm64.dasc b/ext/opcache/jit/zend_jit_arm64.dasc
index 2a65efed73d7..7f20f86cf1d5 100644
--- a/ext/opcache/jit/zend_jit_arm64.dasc
+++ b/ext/opcache/jit/zend_jit_arm64.dasc
@@ -580,10 +580,10 @@ static void* dasm_labels[zend_lb_MAX];
|.macro LONG_CMP, reg, addr, tmp_reg1, tmp_reg2
|| if (Z_MODE(addr) == IS_CONST_ZVAL) {
-| brk #0 // TODO: test
|| if(Z_LVAL_P(Z_ZV(addr)) >= 0 && Z_LVAL_P(Z_ZV(addr)) <= MAX_IMM12) {
| cmp Rx(reg), #(Z_LVAL_P(Z_ZV(addr)))
|| } else {
+| brk #0 // TODO
| LOAD_64BIT_VAL tmp_reg1, Z_LVAL_P(Z_ZV(addr))
| cmp Rx(reg), tmp_reg1
|| }