From: Andy Postnikov Date: Sat, 10 Dec 2016 20:51:17 +0000 (+0300) Subject: Fix ZEND_SIGNED_MULTIPLY_LONG for AArch64 X-Git-Tag: php-7.2.0alpha1~565 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c8679207ae5ada8751288e75b78c928a4d34d1d;p=php Fix ZEND_SIGNED_MULTIPLY_LONG for AArch64 Register operands are required in this context. --- diff --git a/Zend/zend_multiply.h b/Zend/zend_multiply.h index 078cb439d7..e40cb46328 100644 --- a/Zend/zend_multiply.h +++ b/Zend/zend_multiply.h @@ -75,8 +75,8 @@ __asm__("mul %0, %2, %3\n" \ "smulh %1, %2, %3\n" \ "sub %1, %1, %0, asr #63\n" \ - : "=X"(__tmpvar), "=X"(usedval) \ - : "X"(a), "X"(b)); \ + : "=&r"(__tmpvar), "=&r"(usedval) \ + : "r"(a), "r"(b)); \ if (usedval) (dval) = (double) (a) * (double) (b); \ else (lval) = __tmpvar; \ } while (0)