1 From 1622f24fde4220967bd907bf8f0325d444bf9339 Mon Sep 17 00:00:00 2001
2 From: Andy Postnikov <apostnikov@gmail.com>
3 Date: Sat, 10 Dec 2016 23:51:17 +0300
4 Subject: [PATCH] Fix bug #70015 - Compilation failure on aarch64
8 [From pull request https://github.com/php/php-src/pull/2236.]
9 Signed-off-by: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
11 Zend/zend_multiply.h | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
14 diff --git a/Zend/zend_multiply.h b/Zend/zend_multiply.h
15 index 75769db..fbd69ab 100644
16 --- a/Zend/zend_multiply.h
17 +++ b/Zend/zend_multiply.h
19 __asm__("mul %0, %2, %3\n" \
20 "smulh %1, %2, %3\n" \
21 "sub %1, %1, %0, asr #63\n" \
22 - : "=X"(__tmpvar), "=X"(usedval) \
23 - : "X"(a), "X"(b)); \
24 + : "=&r"(__tmpvar), "=&r"(usedval) \
25 + : "r"(a), "r"(b)); \
26 if (usedval) (dval) = (double) (a) * (double) (b); \
27 else (lval) = __tmpvar; \