Commit d6b0bb68 by Mike Stump

formatting tweaks

From-SVN: r12387
parent ba0d6745
...@@ -1352,13 +1352,13 @@ main (argc, argv) ...@@ -1352,13 +1352,13 @@ main (argc, argv)
unlink (ldout); unlink (ldout);
/* If -r or they'll be run via some other method, don't build the /* If -r or they'll be run via some other method, don't build the
constructor or destructor list, just return now. */ constructor or destructor list, just return now. */
if (rflag || ! do_collecting) if (rflag || ! do_collecting)
return 0; return 0;
/* Examine the namelist with nm and search it for static constructors /* Examine the namelist with nm and search it for static constructors
and destructors to call. and destructors to call.
Write the constructor and destructor tables to a .s file and reload. */ Write the constructor and destructor tables to a .s file and reload. */
scan_prog_file (output_file, PASS_FIRST); scan_prog_file (output_file, PASS_FIRST);
......
...@@ -91,65 +91,65 @@ ...@@ -91,65 +91,65 @@
#define add_ssaaaa(sh, sl, ah, al, bh, bl) \ #define add_ssaaaa(sh, sl, ah, al, bh, bl) \
__asm__ ("add %1,%4,%5 __asm__ ("add %1,%4,%5
addc %0,%2,%3" \ addc %0,%2,%3" \
: "=r" ((USItype)(sh)), \ : "=r" ((USItype) (sh)), \
"=&r" ((USItype)(sl)) \ "=&r" ((USItype) (sl)) \
: "%r" ((USItype)(ah)), \ : "%r" ((USItype) (ah)), \
"rI" ((USItype)(bh)), \ "rI" ((USItype) (bh)), \
"%r" ((USItype)(al)), \ "%r" ((USItype) (al)), \
"rI" ((USItype)(bl))) "rI" ((USItype) (bl)))
#define sub_ddmmss(sh, sl, ah, al, bh, bl) \ #define sub_ddmmss(sh, sl, ah, al, bh, bl) \
__asm__ ("sub %1,%4,%5 __asm__ ("sub %1,%4,%5
subc %0,%2,%3" \ subc %0,%2,%3" \
: "=r" ((USItype)(sh)), \ : "=r" ((USItype) (sh)), \
"=&r" ((USItype)(sl)) \ "=&r" ((USItype) (sl)) \
: "r" ((USItype)(ah)), \ : "r" ((USItype) (ah)), \
"rI" ((USItype)(bh)), \ "rI" ((USItype) (bh)), \
"r" ((USItype)(al)), \ "r" ((USItype) (al)), \
"rI" ((USItype)(bl))) "rI" ((USItype) (bl)))
#define umul_ppmm(xh, xl, m0, m1) \ #define umul_ppmm(xh, xl, m0, m1) \
do { \ do { \
USItype __m0 = (m0), __m1 = (m1); \ USItype __m0 = (m0), __m1 = (m1); \
__asm__ ("multiplu %0,%1,%2" \ __asm__ ("multiplu %0,%1,%2" \
: "=r" ((USItype)(xl)) \ : "=r" ((USItype) (xl)) \
: "r" (__m0), \ : "r" (__m0), \
"r" (__m1)); \ "r" (__m1)); \
__asm__ ("multmu %0,%1,%2" \ __asm__ ("multmu %0,%1,%2" \
: "=r" ((USItype)(xh)) \ : "=r" ((USItype) (xh)) \
: "r" (__m0), \ : "r" (__m0), \
"r" (__m1)); \ "r" (__m1)); \
} while (0) } while (0)
#define udiv_qrnnd(q, r, n1, n0, d) \ #define udiv_qrnnd(q, r, n1, n0, d) \
__asm__ ("dividu %0,%3,%4" \ __asm__ ("dividu %0,%3,%4" \
: "=r" ((USItype)(q)), \ : "=r" ((USItype) (q)), \
"=q" ((USItype)(r)) \ "=q" ((USItype) (r)) \
: "1" ((USItype)(n1)), \ : "1" ((USItype) (n1)), \
"r" ((USItype)(n0)), \ "r" ((USItype) (n0)), \
"r" ((USItype)(d))) "r" ((USItype) (d)))
#define count_leading_zeros(count, x) \ #define count_leading_zeros(count, x) \
__asm__ ("clz %0,%1" \ __asm__ ("clz %0,%1" \
: "=r" ((USItype)(count)) \ : "=r" ((USItype) (count)) \
: "r" ((USItype)(x))) : "r" ((USItype) (x)))
#endif /* __a29k__ */ #endif /* __a29k__ */
#if defined (__arm__) #if defined (__arm__)
#define add_ssaaaa(sh, sl, ah, al, bh, bl) \ #define add_ssaaaa(sh, sl, ah, al, bh, bl) \
__asm__ ("adds %1, %4, %5 __asm__ ("adds %1, %4, %5
adc %0, %2, %3" \ adc %0, %2, %3" \
: "=r" ((USItype)(sh)), \ : "=r" ((USItype) (sh)), \
"=&r" ((USItype)(sl)) \ "=&r" ((USItype) (sl)) \
: "%r" ((USItype)(ah)), \ : "%r" ((USItype) (ah)), \
"rI" ((USItype)(bh)), \ "rI" ((USItype) (bh)), \
"%r" ((USItype)(al)), \ "%r" ((USItype) (al)), \
"rI" ((USItype)(bl))) "rI" ((USItype) (bl)))
#define sub_ddmmss(sh, sl, ah, al, bh, bl) \ #define sub_ddmmss(sh, sl, ah, al, bh, bl) \
__asm__ ("subs %1, %4, %5 __asm__ ("subs %1, %4, %5
sbc %0, %2, %3" \ sbc %0, %2, %3" \
: "=r" ((USItype)(sh)), \ : "=r" ((USItype) (sh)), \
"=&r" ((USItype)(sl)) \ "=&r" ((USItype) (sl)) \
: "r" ((USItype)(ah)), \ : "r" ((USItype) (ah)), \
"rI" ((USItype)(bh)), \ "rI" ((USItype) (bh)), \
"r" ((USItype)(al)), \ "r" ((USItype) (al)), \
"rI" ((USItype)(bl))) "rI" ((USItype) (bl)))
#define umul_ppmm(xh, xl, a, b) \ #define umul_ppmm(xh, xl, a, b) \
{register USItype __t0, __t1, __t2; \ {register USItype __t0, __t1, __t2; \
__asm__ ("%@ Inlined umul_ppmm __asm__ ("%@ Inlined umul_ppmm
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment