com php-src: Fixed temporary register usage: ext/opcache/jit/ze nd_jit_x86.dasc
| From: | Dmitry Stogov | Date: | Wed, 29 Jul 2020 19:01:19 +0000 |
| Subject: | com php-src: Fixed temporary register usage: ext/opcache/jit/ze nd_jit_x86.dasc | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-112449@lists.php.net to get a copy of this message | ||
Commit: 44384dfb3e620bf947b263dcf9169f3637c0acc5
Author: Dmitry Stogov <dmitry@zend.com> Wed, 29 Jul 2020 22:01:19 +0300
Parents: 59921aa9b38b6636ace3a9cb023b1d5aef1099fa
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=44384dfb3e620bf947b263dcf9169f3637c0acc5
Log:
Fixed temporary register usage
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 19e56ef6b6..efb0b7f682 100644
--- a/ext/opcache/jit/zend_jit_x86.dasc
+++ b/ext/opcache/jit/zend_jit_x86.dasc
@@ -4101,7 +4101,7 @@ static int zend_jit_math_double_long(dasm_State **Dst,
if (Z_MODE(res_addr) == IS_REG) {
result_reg = Z_REG(res_addr);
- tmp_reg = ZREG_XMM0;
+ tmp_reg = (result_reg == ZREG_XMM0) ? ZREG_XMM1 : ZREG_XMM0;
} else if (Z_MODE(op1_addr) == IS_REG && Z_LAST_USE(op1_addr)) {
result_reg = Z_REG(op1_addr);
tmp_reg = ZREG_XMM0;