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



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;
}

Yes, so a function like the get_one_constant I wrote for PR26821 could definitely help in general.


Or, we may want to punt and use TREE_CODE (type) == REAL_TYPE instead of FLOAT_TYPE_P or TREE_CODE (type) != COMPLEX_TYPE.

Paolo


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