Fresh pull from upstream (stable) package feed
[librecmc/package-feed.git] / lang / php7 / patches / 1005-fix-asm-constraints-in-aarch64-multiply-macro.patch
1 From 6cbb9f4c247c5361b8c165fbb40b4118d5d7c0e5 Mon Sep 17 00:00:00 2001
2 From: Andreas Schwab <schwab@linux-m68k.org>
3 Date: Mon, 25 Apr 2016 11:59:14 +0200
4 Subject: [PATCH] Fix asm constraints in aarch64 multiply macro
5
6 All operands must be register operands and the output operands are early
7 clobbered.
8 ---
9  Zend/zend_multiply.h | 4 ++--
10  1 file changed, 2 insertions(+), 2 deletions(-)
11
12 diff --git a/Zend/zend_multiply.h b/Zend/zend_multiply.h
13 index dfd21f7..651dd43 100644
14 --- a/Zend/zend_multiply.h
15 +++ b/Zend/zend_multiply.h
16 @@ -53,8 +53,8 @@
17         __asm__("mul %0, %2, %3\n"                                                                              \
18                 "smulh %1, %2, %3\n"                                                                            \
19                 "sub %1, %1, %0, asr #63\n"                                                                     \
20 -                       : "=X"(__tmpvar), "=X"(usedval)                                                 \
21 -                       : "X"(a), "X"(b));                                                                              \
22 +                       : "=&r"(__tmpvar), "=&r"(usedval)                                               \
23 +                       : "r"(a), "r"(b));                                                                              \
24         if (usedval) (dval) = (double) (a) * (double) (b);                              \
25         else (lval) = __tmpvar;                                                                                 \
26  } while (0)
27 -- 
28 2.8.0
29