This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] longlong.h bugfix
- To: "David S. Miller" <davem at redhat dot com>
- Subject: [PATCH] longlong.h bugfix
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Fri, 10 Dec 1999 17:45:40 +0100
- Cc: gcc-patches at gcc dot gnu dot org
Hi!
David, can you commit this? Otherwise it may end up with subcc 0,%g1,%g2 and
the like.
Also, can you commit Ben Collin's fix posted yesterday?
1999-12-10 Jakub Jelinek <jakub@redhat.com>
* longlong.h (__sparc_v9__): Use %rDIGIT instead of %DIGIT where
appropriate.
--- longlong.h.jj Fri Dec 10 15:15:34 1999
+++ longlong.h Fri Dec 10 17:24:35 1999
@@ -1185,8 +1185,8 @@ UDItype __umulsidi3 (USItype, USItype);
#if (defined (__sparc_v9__) || (defined (__sparc__) && defined (__arch64__)) \
|| defined (__sparcv9)) && W_TYPE_SIZE == 64
#define add_ssaaaa(sh, sl, ah, al, bh, bl) \
- __asm__ ("addcc %4,%5,%1
- add %2,%3,%0
+ __asm__ ("addcc %r4,%5,%1
+ add %r2,%3,%0
bcs,a,pn %%xcc, 1f
add %0, 1, %0
1:" \
@@ -1199,8 +1199,8 @@ UDItype __umulsidi3 (USItype, USItype);
__CLOBBER_CC)
#define sub_ddmmss(sh, sl, ah, al, bh, bl) \
- __asm__ ("subcc %4,%5,%1
- sub %2,%3,%0
+ __asm__ ("subcc %r4,%5,%1
+ sub %r2,%3,%0
bcs,a,pn %%xcc, 1f
sub %0, 1, %0
1:" \
Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jakub@redhat.com | http://sunsite.mff.cuni.cz/~jj
Linux version 2.3.26 on a sparc64 machine (1343.49 BogoMips)
___________________________________________________________________