com php-src: Fixed operation with result in CPU register: ext/opcache/jit/zend_jit_x86.dasc

From: Date: Fri, 06 Dec 2019 14:16:46 +0000
Subject: com php-src: Fixed operation with result in CPU register: ext/opcache/jit/zend_jit_x86.dasc
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-109414@lists.php.net to get a copy of this message
Commit: ebf35cc8e8a8affd7d6b007c30db46259b5b8264 Author: Dmitry Stogov <dmitry@zend.com> Fri, 6 Dec 2019 17:16:46 +0300 Parents: aed2bf7ab3b29435700e14dd820015ea2b52d6f3 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ebf35cc8e8a8affd7d6b007c30db46259b5b8264 Log: Fixed operation with result in CPU register Changed paths: M ext/opcache/jit/zend_jit_x86.dasc Diff: diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc index ac64668e674..e48f406149b 100644 --- a/ext/opcache/jit/zend_jit_x86.dasc +++ b/ext/opcache/jit/zend_jit_x86.dasc @@ -3038,10 +3038,12 @@ static int zend_jit_math_long_long(dasm_State **Dst, | jo >1 } - | SET_ZVAL_LVAL res_addr, Ra(result_reg) - if (Z_MODE(op1_addr) != IS_MEM_ZVAL || Z_REG(op1_addr) != Z_REG(res_addr) || Z_OFFSET(op1_addr) != Z_OFFSET(res_addr)) { - if ((res_use_info & (MAY_BE_ANY|MAY_BE_UNDEF|MAY_BE_REF)) != MAY_BE_LONG) { - | SET_ZVAL_TYPE_INFO res_addr, IS_LONG + if (Z_MODE(res_addr) == IS_MEM_ZVAL) { + | SET_ZVAL_LVAL res_addr, Ra(result_reg) + if (Z_MODE(op1_addr) != IS_MEM_ZVAL || Z_REG(op1_addr) != Z_REG(res_addr) || Z_OFFSET(op1_addr) != Z_OFFSET(res_addr)) { + if ((res_use_info & (MAY_BE_ANY|MAY_BE_UNDEF|MAY_BE_REF)) != MAY_BE_LONG) { + | SET_ZVAL_TYPE_INFO res_addr, IS_LONG + } } }

« previous php.cvs (#109414) next »