This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC beaten by ICC in stupid trig test!
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 24 Mar 2004 19:10:37 +0000
- Subject: Re: GCC beaten by ICC in stupid trig test!
- Organization: CodeSourcery
- References: <NUTMEGdqVvPdLFYxc9N0000021d@NUTMEG.CAM.ARTIMI.COM>
> IIUIC the fact that the + operator is specified in the standard as
> binding left-to-right imply that "a + b + c" with no brackets *has* to be
> interpreted as "(a + b) + c".
Specific examples of allowable transformations (taken directly from the f95
standard):
original written form-> allowable form
x+y -> y+x
-x+y -> y-x
x+y+z -> (x+y)+z
a+b-c -> a+(b-c)
x+y+z -> x+(y+z)
x*y+x*z -> x*(y+z)
a/b/c -> a/(b*c)
a/5.0 -> 0.2*a
However, the following transformation is not allowed:
a+(b-c)->(a+b)-c
Paul