Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / fast-math-vect-pr29925.c
blobbe2f1a913a1fe364651e376fb0be6d4cdf6484d1
1 /* { dg-require-effective-target vect_float } */
3 #include <stdlib.h>
4 #include "tree-vect.h"
6 __attribute__ ((noinline))
7 void 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 "vectorized 1 loops" 1 "vect" } } */
39 /* { dg-final { cleanup-tree-dump "vect" } } */