This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] add softfp to sparc-*-linux*
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Austin Foxley <austinf at cetoncorp dot com>
- Cc: Uros Bizjak <ubizjak at gmail dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Wed, 15 Apr 2009 15:00:55 -0400 (EDT)
- Subject: Re: [patch] add softfp to sparc-*-linux*
- References: <5787cf470904150043q719dad75s521172a3e19c110a@mail.gmail.com> <49E62317.9090305@cetoncorp.com>
On Wed, 15 Apr 2009, Austin Foxley wrote:
> +#define __FP_FRAC_ADD_4(r3,r2,r1,r0,x3,x2,x1,x0,y3,y2,y1,y0) \
> + do { \
> + /* We need to fool gcc, as we need to pass more than 10 \
> + input/outputs. */ \
> + register USItype _t1 __asm__ ("g1"), _t2 __asm__ ("g2"); \
> + __asm__ __volatile__ ("\
...
No you don't need (and shouldn't try), you can use symbolic names.
See the second example in the Extended Asm chapter.
brgds, H-P