Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / costmodel / ppc / costmodel-fast-math-vect-pr29925.c
blob00e631b1366eb1f42028a781eebdebb3d9219ec9
1 /* { dg-require-effective-target vect_float } */
3 #include <stdlib.h>
4 #include "../../tree-vect.h"
6 __attribute__ ((noinline)) void
7 interp_pitch(float *exc, float *interp, int pitch, int len)
9 int i,k;
10 int maxj;
12 maxj=3;
13 for (i=0;i<len;i++)
15 float tmp = 0;
16 for (k=0;k<7;k++)
18 tmp += exc[i-pitch+k+maxj-6];
20 interp[i] = tmp;
24 int main()
26 float *exc = calloc(126,sizeof(float));
27 float *interp = calloc(80,sizeof(float));
28 int pitch = -35;
30 check_vect ();
32 interp_pitch(exc, interp, pitch, 80);
33 free(exc);
34 free(interp);
35 return 0;
38 /* { dg-final { scan-tree-dump-times "vectorization not profitable" 1 "vect" } } */
39 /* { dg-final { cleanup-tree-dump "vect" } } */