openmp: Fix signed/unsigned warning
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / fast-math-vect-pr29925.c
blobe6e5a58fd02f0dfb37a071433add9869a63ecaa2
1 /* { dg-additional-options "-ffast-math" } */
2 /* { dg-require-effective-target vect_float } */
4 #include <stdlib.h>
5 #include "tree-vect.h"
7 __attribute__ ((noinline))
8 void interp_pitch(float *exc, float *interp, int pitch, int len)
10 int i,k;
11 int maxj;
13 maxj=3;
14 for (i=0;i<len;i++)
16 float tmp = 0;
17 #pragma GCC unroll 0
18 for (k=0;k<7;k++)
20 tmp += exc[i-pitch+k+maxj-6];
22 interp[i] = tmp;
26 int main()
28 float *exc = calloc(126,sizeof(float));
29 float *interp = calloc(80,sizeof(float));
30 int pitch = -35;
32 check_vect ();
34 interp_pitch(exc, interp, pitch, 80);
35 free(exc);
36 free(interp);
37 return 0;
40 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */