diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2013-07-04 10:25:38 +0200 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2013-07-04 10:25:38 +0200 |
commit | 47e21a2c407e7b11b3ffc76b308d7f5c58ceca7e (patch) | |
tree | 1ba61348a2dc957f3142bc38f3f1f01b44c9b8a1 /Zend/zend_alloc.c | |
parent | 40cbceaf71f3431b43c245704d82f06c8bb4c2de (diff) | |
download | php-git-47e21a2c407e7b11b3ffc76b308d7f5c58ceca7e.tar.gz |
Fix assembly of safe_address() for aarch64
Diffstat (limited to 'Zend/zend_alloc.c')
-rw-r--r-- | Zend/zend_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 383a1dfcab..bf9d000437 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -2535,7 +2535,7 @@ static inline size_t safe_address(size_t nmemb, size_t size, size_t offset) size_t res; unsigned long overflow; - __asm__ ("mul %0,%2,%3\n\tumulh %1,%2,%3\n\tadds %0,%0,%4\n\tadc %1,%1,%1" + __asm__ ("mul %0,%2,%3\n\tumulh %1,%2,%3\n\tadds %0,%0,%4\n\tadc %1,%1,xzr" : "=&r"(res), "=&r"(overflow) : "r"(nmemb), "r"(size), |