Skip to content

Commit 8c86792

Browse files
andypostnikic
authored andcommitted
Fix ZEND_SIGNED_MULTIPLY_LONG for AArch64
Register operands are required in this context.
1 parent 2aaf57e commit 8c86792

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_multiply.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575
__asm__("mul %0, %2, %3\n" \
7676
"smulh %1, %2, %3\n" \
7777
"sub %1, %1, %0, asr #63\n" \
78-
: "=X"(__tmpvar), "=X"(usedval) \
79-
: "X"(a), "X"(b)); \
78+
: "=&r"(__tmpvar), "=&r"(usedval) \
79+
: "r"(a), "r"(b)); \
8080
if (usedval) (dval) = (double) (a) * (double) (b); \
8181
else (lval) = __tmpvar; \
8282
} while (0)

0 commit comments

Comments
 (0)