This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add __abssf2 and __absdf2 to libgcc


On Wed, Dec 04, 2002 at 10:34:23AM -0700, Roger Sayle wrote:
> But this is the bit that still worries me.  I think this is
> made far harder by the variety of GCC's targets.  Consider
> targets with hardware floating point but without an abs?f2
> pattern.  In these cases, incoming "reg" in expand_abs may
> not support bit-wise and and/or xor operations.

Yep.  It'll get copied to a general register in that case.

> I'm not even sure how we encode reinterpretation: i.e. changing an
> [sd]f mode pseudo into a [sd]i mode bit-pattern and back again
> without conversion/interpretation.

	imode = int_mode_for_mode (fpmode);
	if (imode == BLKmode)
	  tgt = memory;
	else
	  ival = gen_lowpart (imode, fpval);



r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]