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 RFA] SH: Fix a latent tighter check in sh/predicate.md


Kazu Hirata <kazu@codesourcery.com> wrote:
> Maybe the testcase itself is also worth checking in?

How does the attached test look like?  I'm not sure where is
the appropriate place to put it in even if it's worth to add,
though.

Regards,
	kaz
--
/* Compiler generates 64-bit stores of zero for this on some targets.
   Check there is no problem for such case.  */
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-vectorize" } */

void
foo (float *dest, int xcount, int  ycount)
{
  int x, y;

  for (y = 0; y < ycount; y++)
    for (x = 0; x < xcount; x++)
      dest[x + y] = (float) 0;
}


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