diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-10-18 17:57:10 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-10-18 17:57:10 +0000 |
commit | ed4d34f6ac306155e9d5c9772a86ed7e43a4073e (patch) | |
tree | 98aeda0e550adbdf7ef6ce235f0818dc1de6e9c3 | |
parent | 984786f2cb8941618d7c3df27cccf3729cc1e73d (diff) | |
download | mpfr-ed4d34f6ac306155e9d5c9772a86ed7e43a4073e.tar.gz |
[src/mpfr-longlong.h] Fix obsolete ARC asm constraints; see patch posted
on <https://sympa.inria.fr/sympa/arc/mpfr/2018-10/msg00010.html>.
(merged changeset r13251 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13252 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | src/mpfr-longlong.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mpfr-longlong.h b/src/mpfr-longlong.h index 446b23130..b321041db 100644 --- a/src/mpfr-longlong.h +++ b/src/mpfr-longlong.h @@ -410,23 +410,25 @@ long __MPN(count_leading_zeros) (UDItype); #define COUNT_LEADING_ZEROS_0 32 #endif /* __a29k__ */ +/* MPFR: changed "J" constraint to "Cal" constraint + (https://sympa.inria.fr/sympa/arc/mpfr/2018-10/msg00010.html) */ #if defined (__arc__) #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ __asm__ ("add.f\t%1, %4, %5\n\tadc\t%0, %2, %3" \ : "=r" (sh), \ "=&r" (sl) \ : "r" ((USItype) (ah)), \ - "rIJ" ((USItype) (bh)), \ + "rICal" ((USItype) (bh)), \ "%r" ((USItype) (al)), \ - "rIJ" ((USItype) (bl))) + "rICal" ((USItype) (bl))) #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ __asm__ ("sub.f\t%1, %4, %5\n\tsbc\t%0, %2, %3" \ : "=r" (sh), \ "=&r" (sl) \ : "r" ((USItype) (ah)), \ - "rIJ" ((USItype) (bh)), \ + "rICal" ((USItype) (bh)), \ "r" ((USItype) (al)), \ - "rIJ" ((USItype) (bl))) + "rICal" ((USItype) (bl))) #endif #if defined (__arm__) && (defined (__thumb2__) || !defined (__thumb__)) \ |