[PATCH] Fix clobbers in SPARC asm patterns in longlong.h

Jakub Jelinek jakub@redhat.com
Mon Dec 6 03:30:00 GMT 1999


Hi!

1999-12-06  Jakub Jelinek  <jakub@redhat.com>

	* longlong.h: Fix clobbers in SPARC patterns.

--- longlong.h.jj	Wed Dec  1 10:22:07 1999
+++ longlong.h	Mon Dec  6 12:21:16 1999
@@ -1083,7 +1083,7 @@ UDItype __umulsidi3 (USItype, USItype);
 	   : "r" ((USItype) (n1)),					\
 	     "r" ((USItype) (n0)),					\
 	     "rI" ((USItype) (d))					\
-	   : "%g1" __AND_CLOBBER_CC)
+	   : "g1" __AND_CLOBBER_CC)
 #define UDIV_TIME 37
 #define count_leading_zeros(count, x) \
   do {                                                                  \
@@ -1142,7 +1142,7 @@ UDItype __umulsidi3 (USItype, USItype);
 	     "=r" ((USItype) (w0))					\
 	   : "%rI" ((USItype) (u)),					\
 	     "r" ((USItype) (v))						\
-	   : "%g1", "%g2" __AND_CLOBBER_CC)
+	   : "g1", "g2" __AND_CLOBBER_CC)
 #define UMUL_TIME 39		/* 39 instructions */
 /* It's quite necessary to add this much assembler for the sparc.
    The default udiv_qrnnd (in C) is more than 10 times slower!  */
@@ -1175,7 +1175,7 @@ UDItype __umulsidi3 (USItype, USItype);
 	     "=&r" ((USItype) (r))					\
 	   : "r" ((USItype) (d)),					\
 	     "1" ((USItype) (n1)),					\
-	     "0" ((USItype) (n0)) : "%g1" __AND_CLOBBER_CC)
+	     "0" ((USItype) (n0)) : "g1" __AND_CLOBBER_CC)
 #define UDIV_TIME (3+7*32)	/* 7 instructions/iteration. 32 iterations. */
 #endif /* __sparclite__ */
 #endif /* __sparc_v8__ */

Cheers,
    Jakub
___________________________________________________________________
Jakub Jelinek | jakub@redhat.com | http://sunsite.mff.cuni.cz/~jj
Linux version 2.3.18 on a sparc64 machine (1343.49 BogoMips)
___________________________________________________________________


More information about the Gcc-patches mailing list