Powerpc64 long double support
Richard Henderson
rth@redhat.com
Tue Mar 9 07:59:00 GMT 2004
On Tue, Mar 09, 2004 at 03:35:31PM +1030, Alan Modra wrote:
> On Sat, Mar 06, 2004 at 11:30:23PM -0800, Richard Henderson wrote:
> > On Sun, Mar 07, 2004 at 05:07:08PM +1030, Alan Modra wrote:
> > > - operands[2] = CONST0_RTX (DFmode);
> > > + REAL_VALUE_TYPE rv;
> > > + /* Make a -0.0 */
> > > + memset (&rv, 0, sizeof (rv));
> > > + rv.sign = 1;
> > > + operands[2] = CONST_DOUBLE_FROM_REAL_VALUE (rv, DFmode);
> >
> > How about
> >
> > REAL_VALUE_TYPE rv = REAL_VALUE_NEGATE (dconst0);
>
> Well, it's nicer to hide the details of REAL_VALUE_TYPE, but..
> REAL_VALUE_NEGATE needs NEGATE_EXPR. ie. you need to arrange for
> tree.h to be included in insn-emit.c. An easy patch to genemit.c,
> but is it a good idea?
I *do* think that's better than frobbing rv.sign yourself.
The less the format of real.h gets exposed the better.
r~
More information about the Gcc-patches
mailing list