This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch RFA] SH: Fix a latent tighter check in sh/predicate.md
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: kazu at codesourcery dot com
- Cc: gcc-patches at gcc dot gnu dot org, joern dot rennecke at st dot com, aoliva at redhat dot com
- Date: Sat, 14 Jan 2006 14:03:35 +0900 (JST)
- Subject: Re: [patch RFA] SH: Fix a latent tighter check in sh/predicate.md
- References: <20060114.084038.119229440.kkojima@rr.iij4u.or.jp> <43C85914.1030501@codesourcery.com>
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;
}