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: GCC beaten by ICC in stupid trig test!


Roger Sayle wrote:

May I remind everyone that the subject title "GCC beaten by ICC in
stupid trig test!" refers to a posting by Scott Robert Ladd in which
Intel's icc compiler generates floating point code 64x faster than
gcc 3.3.3 (http://gcc.gnu.org/ml/gcc/2004-03/msg00634.html).

Would anyone like to hazard a guess at how many floating point additions
Intel icc v7 generates for the following function?  Even with icc's
default arguments, i.e. "icc foo.c"?

int foo(double a, double b, double c)
{
  return (a+b)+c == a+(b+c);
}

If it is really true that icc treats this as true at compile time in default mode, that's simply appalling in my view, and not something gcc should copy!


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