[PATCH] Constant folding for cabs and fabs (take 2)

Roger Sayle roger@eyesopen.com
Mon Jun 9 17:38:00 GMT 2003


Hi Joern,
> The builtins-18.c test fails on sh-elf, on all 11 multilibs.
> I can avoid the ICE with a relatively simple patch (see
> previous posting), but then I still get a link error for
> _link_error.
> Likewise, builtins-19.c fails on all sh-elf multilibs except
> those that use 64 bit hardware floating point for double
> (-m4,-m4/-ml,-m4-single,-m4-single/-ml) .

Ok, I'll take a look at it.  I suspect that CSE or GCSE isn't
playing well with CONCAT.  Perhaps they don't realize that a
CONCAT of two constants is a constant, or something similar.

I think your reg_overlap_mentioned_p and convert_move changes
look good, but of course I can't approve anything.  Hopefully,
someone will approve them, which should make fixing the RTL
optimizers easier.

Thanks again for letting me know.

Roger
--



More information about the Gcc-patches mailing list