OSDN Git Service

2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
authorkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Oct 2011 07:27:01 +0000 (07:27 +0000)
committerkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Oct 2011 07:27:01 +0000 (07:27 +0000)
* longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
variables.  Fix second operand of DR.  Swap inputs for sdiv_qrnnd.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179491 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/longlong.h

index bdbe2a3..f332285 100644 (file)
@@ -1,3 +1,8 @@
+2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
+
+       * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
+       variables.  Fix second operand of DR.  Swap inputs for sdiv_qrnnd.
+
 2011-10-03  David S. Miller  <davem@davemloft.net>
 
        * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
index 82ced17..30cc2e3 100644 (file)
@@ -365,23 +365,24 @@ UDItype __umulsidi3 (USItype, USItype);
 #else
 #define smul_ppmm(xh, xl, m0, m1) \
   do {                                                                  \
-    register SItype r0 __asm__ ("0");                                   \
-    register SItype r1 __asm__ ("1") = m0;                              \
+    register SItype __r0 __asm__ ("0");                                        \
+    register SItype __r1 __asm__ ("1") = (m0);                         \
                                                                         \
     __asm__ ("mr\t%%r0,%3"                                              \
-             : "=r" (r0), "=r" (r1)                                     \
-             : "r"  (r1),  "r" (m1));                                   \
-    (xh) = r0; (xl) = r1;                                               \
+             : "=r" (__r0), "=r" (__r1)                                        \
+             : "r"  (__r1),  "r" (m1));                                        \
+    (xh) = __r0; (xl) = __r1;                                          \
   } while (0)
+
 #define sdiv_qrnnd(q, r, n1, n0, d) \
-  do {                                                                 \
-    register SItype r0 __asm__ ("0") = n0;                              \
-    register SItype r1 __asm__ ("1") = n1;                              \
+  do {                                                                  \
+    register SItype __r0 __asm__ ("0") = (n1);                         \
+    register SItype __r1 __asm__ ("1") = (n0);                         \
                                                                         \
-    __asm__ ("dr\t%%r0,%3"                                             \
-            : "=r" (r0), "=r" (r1)                                     \
-            : "r" (r0), "r" (r1), "r" (d));                            \
-    (q) = r0; (r) = r1;                                                \
+    __asm__ ("dr\t%%r0,%4"                                              \
+             : "=r" (__r0), "=r" (__r1)                                        \
+             : "r" (__r0), "r" (__r1), "r" (d));                       \
+    (q) = __r1; (r) = __r0;                                            \
   } while (0)
 #endif /* __zarch__ */
 #endif