From 0859789851e3e1dbcd8c20b3a4cfc86d17b36b5a Mon Sep 17 00:00:00 2001 From: Torbjorn Granlund Date: Wed, 15 Jan 2020 23:01:20 +0100 Subject: Add CLOBBER_CC for powerpc asm. --- mpn/generic/div_qr_1n_pi1.c | 3 ++- mpn/generic/div_qr_1n_pi2.c | 6 ++++-- mpn/generic/div_qr_1u_pi2.c | 3 ++- mpn/generic/div_qr_2.c | 6 ++++-- mpn/generic/mod_1_1.c | 3 ++- 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/mpn/generic/div_qr_1n_pi1.c b/mpn/generic/div_qr_1n_pi1.c index 30b5fc24a..5c3281000 100644 --- a/mpn/generic/div_qr_1n_pi1.c +++ b/mpn/generic/div_qr_1n_pi1.c @@ -114,7 +114,8 @@ see https://www.gnu.org/licenses/. */ "subfe %0, %0, %0\n\t" \ "nor %0, %0, %0" \ : "=r" (m), "=r" (s1), "=&r" (s0) \ - : "r" (a1), "r" (b1), "%r" (a0), "rI" (b0)) + : "r" (a1), "r" (b1), "%r" (a0), "rI" (b0) \ + __CLOBBER_CC) #endif #if defined (__s390x__) && W_TYPE_SIZE == 64 diff --git a/mpn/generic/div_qr_1n_pi2.c b/mpn/generic/div_qr_1n_pi2.c index 7ceb2b84a..d8834eaf4 100644 --- a/mpn/generic/div_qr_1n_pi2.c +++ b/mpn/generic/div_qr_1n_pi2.c @@ -73,7 +73,8 @@ see https://www.gnu.org/licenses/. */ #define add_sssaaaa(s2, s1, s0, a1, a0, b1, b0) \ __asm__ ("adds\t%2, %x6, %7\n\tadcs\t%1, %x4, %x5\n\tadc\t%0, %3, xzr"\ : "=r" (s2), "=&r" (s1), "=&r" (s0) \ - : "rZ" (s2), "%rZ" (a1), "rZ" (b1), "%rZ" (a0), "rI" (b0) __CLOBBER_CC) + : "rZ" (s2), "%rZ" (a1), "rZ" (b1), "%rZ" (a0), "rI" (b0) \ + __CLOBBER_CC) #endif #if HAVE_HOST_CPU_FAMILY_powerpc && !defined (_LONG_LONG_LIMB) @@ -83,7 +84,8 @@ see https://www.gnu.org/licenses/. */ #define add_sssaaaa(s2, s1, s0, a1, a0, b1, b0) \ __asm__ ("add%I7c\t%2,%6,%7\n\tadde\t%1,%4,%5\n\taddze\t%0,%3" \ : "=r" (s2), "=&r" (s1), "=&r" (s0) \ - : "r" (s2), "r" (a1), "r" (b1), "%r" (a0), "rI" (b0)) + : "r" (s2), "r" (a1), "r" (b1), "%r" (a0), "rI" (b0) \ + __CLOBBER_CC) #endif #endif /* __GNUC__ */ diff --git a/mpn/generic/div_qr_1u_pi2.c b/mpn/generic/div_qr_1u_pi2.c index 0e8143662..047662f9d 100644 --- a/mpn/generic/div_qr_1u_pi2.c +++ b/mpn/generic/div_qr_1u_pi2.c @@ -83,7 +83,8 @@ see https://www.gnu.org/licenses/. */ #define add_sssaaaa(s2, s1, s0, a1, a0, b1, b0) \ __asm__ ("add%I7c\t%2,%6,%7\n\tadde\t%1,%4,%5\n\taddze\t%0,%3" \ : "=r" (s2), "=&r" (s1), "=&r" (s0) \ - : "r" (s2), "r" (a1), "r" (b1), "%r" (a0), "rI" (b0)) + : "r" (s2), "r" (a1), "r" (b1), "%r" (a0), "rI" (b0) \ + __CLOBBER_CC) #endif #endif /* __GNUC__ */ diff --git a/mpn/generic/div_qr_2.c b/mpn/generic/div_qr_2.c index 31c1dd70c..f7add44ed 100644 --- a/mpn/generic/div_qr_2.c +++ b/mpn/generic/div_qr_2.c @@ -78,7 +78,8 @@ see https://www.gnu.org/licenses/. */ #define add_sssaaaa(s2, s1, s0, a1, a0, b1, b0) \ __asm__ ("adds\t%2, %x6, %7\n\tadcs\t%1, %x4, %x5\n\tadc\t%0, %3, xzr"\ : "=r" (s2), "=&r" (s1), "=&r" (s0) \ - : "rZ" (s2), "%rZ" (a1), "rZ" (b1), "%rZ" (a0), "rI" (b0) __CLOBBER_CC) + : "rZ" (s2), "%rZ" (a1), "rZ" (b1), "%rZ" (a0), "rI" (b0) \ + __CLOBBER_CC) #endif #if HAVE_HOST_CPU_FAMILY_powerpc && !defined (_LONG_LONG_LIMB) @@ -88,7 +89,8 @@ see https://www.gnu.org/licenses/. */ #define add_sssaaaa(s2, s1, s0, a1, a0, b1, b0) \ __asm__ ("add%I7c\t%2,%6,%7\n\tadde\t%1,%4,%5\n\taddze\t%0,%3" \ : "=r" (s2), "=&r" (s1), "=&r" (s0) \ - : "r" (s2), "r" (a1), "r" (b1), "%r" (a0), "rI" (b0)) + : "r" (s2), "r" (a1), "r" (b1), "%r" (a0), "rI" (b0) \ + __CLOBBER_CC) #endif #endif /* __GNUC__ */ diff --git a/mpn/generic/mod_1_1.c b/mpn/generic/mod_1_1.c index 123a222a4..f6342d681 100644 --- a/mpn/generic/mod_1_1.c +++ b/mpn/generic/mod_1_1.c @@ -113,7 +113,8 @@ see https://www.gnu.org/licenses/. */ "subfe %0, %0, %0\n\t" \ "nor %0, %0, %0" \ : "=r" (m), "=r" (s1), "=&r" (s0) \ - : "r" (a1), "r" (b1), "%r" (a0), "rI" (b0)) + : "r" (a1), "r" (b1), "%r" (a0), "rI" (b0) \ + __CLOBBER_CC) #endif #if defined (__s390x__) && W_TYPE_SIZE == 64 -- cgit v1.2.1