From: Ard Biesheuvel Date: Thu, 4 Jul 2013 08:25:38 +0000 (+0200) Subject: Fix assembly of safe_address() for aarch64 X-Git-Tag: php-5.5.2RC1~17^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=47e21a2c407e7b11b3ffc76b308d7f5c58ceca7e;p=php Fix assembly of safe_address() for aarch64 --- 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),