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: [PATCH] Fix PR middle-end/26717



On Mar 23, 2006, at 5:31 AM, Uros Bizjak wrote:


Hello!

This patch fixes the failure with -ffast-math, where gcc wants to transform A /
A to 1.0 even for complex A. The patch disables the transformation for complex
operands.

I just noticed this, vectors cause the same issue. testcase: typedef float __attribute__((vector_size(16))) ftype;

ftype f(ftype a, ftype b)
{
  ftype c = a/a;
  return c/b;
}

-- Pinski


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