aboutsummaryrefslogtreecommitdiff
path: root/gcc/longlong.h
diff options
context:
space:
mode:
authorAndreas Krebbel <Andreas.Krebbel@de.ibm.com>2011-10-04 07:27:01 +0000
committerAndreas Krebbel <krebbel@gcc.gnu.org>2011-10-04 07:27:01 +0000
commitaecb6197237d88797df2334cd20c89697a54c438 (patch)
treee4620c9c3dcd7d54689a227943ece9be0a593448 /gcc/longlong.h
parent26ac357939a10b5b5e27eaed1f88f141bc3e6c00 (diff)
downloadgcc-aecb6197237d88797df2334cd20c89697a54c438.zip
gcc-aecb6197237d88797df2334cd20c89697a54c438.tar.gz
gcc-aecb6197237d88797df2334cd20c89697a54c438.tar.bz2
longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local variables.
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. From-SVN: r179491
Diffstat (limited to 'gcc/longlong.h')
-rw-r--r--gcc/longlong.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/gcc/longlong.h b/gcc/longlong.h
index 82ced17..30cc2e3 100644
--- a/gcc/longlong.h
+++ b/gcc/longlong.h
@@ -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