This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Simple optimizations missing
- To: Frank Klemm <pfk at fuchs dot offl dot uni-jena dot de>
- Subject: Re: Simple optimizations missing
- From: Andreas Jaeger <aj at suse dot de>
- Date: Sun, 09 Sep 2001 16:31:33 +0200
- Cc: Jan Hubicka <jh at suse dot cz>, gcc at gcc dot gnu dot org
- References: <20010901202854.A7713@fuchs.offl.uni-jena.de><20010902000000.C27182@atrey.karlin.mff.cuni.cz><20010902024104.F7713@fuchs.offl.uni-jena.de><20010903154513.C13574@atrey.karlin.mff.cuni.cz><20010904003127.C335@fuchs.offl.uni-jena.de><20010905133458.D15564@atrey.karlin.mff.cuni.cz><20010905185526.A559@fuchs.offl.uni-jena.de><20010906174007.B1486@atrey.karlin.mff.cuni.cz><20010906222524.A2578@fuchs.offl.uni-jena.de><20010907111641.G9651@atrey.karlin.mff.cuni.cz><20010909153648.A2375@fuchs.offl.uni-jena.de>
Frank Klemm <pfk@fuchs.offl.uni-jena.de> writes:
> Expression optimizations:
>
> x / x = 1
> x % x = 0
For floating point or for integer?
For floating point: 0.0/0.0 might generate a floating point exceptions
and the result is a NaN. The same applies for the infinites.
Frank, I'm looking forward to your patches hoping that they're as good
as your analysis,
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj