This is the mail archive of the gcc@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]

Re: dangerous cleverness? ppc int<->float conversions, subreg


On Mon, Oct 22, 2001 at 04:13:25PM -0700, Zack Weinberg wrote:
> I am worried that this trick is _too_ clever and something horrible will
> happen on code which is marginally more complicated than __fixunsdfsi.

I suspect something terrible will happen.

> Note the tree this is being developed in is vintage 2.96-era and does not
> include the SUBREG_BYTE patch, although I may want to roll it forward into
> 3.1.

Does the branch include the mode argument to REGISTER_MOVE_COST?
If so, I suspect that you'll get the proper effect from making
the cost of an integer mode in an fp reg equal to MEMORY_MOVE_COST
of the same register.  This ought to prevent an fp register from
being preferred, while not actively disallowing it.


r~


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