From b8f6e3d00732586a5a6f1ae8301cb0ec7fd6c783 Mon Sep 17 00:00:00 2001 From: Mike Hamburg Date: Tue, 17 Jan 2017 09:55:51 -0800 Subject: [PATCH] change x86-64 non-BMI2 asm constraints for gcc compat; thanks Olivier Cheron --- src/include/arch_x86_64/arch_intrinsics.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/include/arch_x86_64/arch_intrinsics.h b/src/include/arch_x86_64/arch_intrinsics.h index fc4ff5d..3ffb1a3 100644 --- a/src/include/arch_x86_64/arch_intrinsics.h +++ b/src/include/arch_x86_64/arch_intrinsics.h @@ -190,9 +190,9 @@ static __inline__ void mac_rr(__uint128_t *acc, uint64_t a, const uint64_t b) { ("mulq %[b]; " "addq %%rax, %[lo]; " "adcq %%rdx, %[hi]; " - : [lo]"+r"(lo), [hi]"+r"(hi) - : [b]"r"(b), "a"(a) - : "rax", "rdx", "cc"); + : [lo]"+r"(lo), [hi]"+r"(hi), "+a"(a) + : [b]"r"(b) + : "rdx", "cc"); #endif *acc = (((__uint128_t)(hi))<<64) | lo;