[php-src] jit-arm64: Support failed JIT test case: assign_012.phpt
| From: | Hao Sun via Dmitry Stogov | Date: | Thu, 29 Apr 2021 08:04:01 +0000 |
| Subject: | [php-src] jit-arm64: Support failed JIT test case: assign_012.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-115951@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/525ea70f0a095356075588d96403a16de73a3f60
Raw diff: https://github.com/php/php-src/commit/525ea70f0a095356075588d96403a16de73a3f60.diff
Support failed JIT test case: assign_012.phpt
Support the case where arguments might be reference.
Besides, another two test cases, assign_019.phpt and assign_032.phpt,
would pass as well with this patch.
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 f5ca680c539f..2a65efed73d7 100644
--- a/ext/opcache/jit/zend_jit_arm64.dasc
+++ b/ext/opcache/jit/zend_jit_arm64.dasc
@@ -4828,7 +4828,12 @@ static int zend_jit_send_var(dasm_State **Dst, const zend_op *opline, const
zend
if (opline->op1_type == IS_CV) {
zend_jit_addr val_addr = ZEND_ADDR_MEM_ZVAL(ZREG_FCARG1x, 0);
- | brk #0 // TODO: test
+ | LOAD_ZVAL_ADDR FCARG1x, op1_addr
+ | ZVAL_DEREF FCARG1x, op1_info, TMP1w
+ | ZVAL_COPY_VALUE arg_addr, MAY_BE_ANY, val_addr, op1_info, ZREG_REG0, ZREG_REG2, ZREG_TMP1,
ZREG_TMP2, ZREG_FPR0
+ | lsr REG0w, REG0w, #8
+ | and REG0w, REG0w, #0xff
+ | TRY_ADDREF op1_info, REG0w, REG2, TMP1
} else {
zend_jit_addr ref_addr = ZEND_ADDR_MEM_ZVAL(ZREG_FCARG1x, 8);