Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / vect / fast-math-vect-pr29925.c
blobcaa6a3ca67d2e45f11135437621cb445d01e15f0
1 /* { dg-require-effective-target vect_float } */
3 #include <stdlib.h>
4 #include "tree-vect.h"
6 void interp_pitch(float *exc, float *interp, int pitch, int len)
8 int i,k;
9 int maxj;
11 maxj=3;
12 for (i=0;i<len;i++)
14 float tmp = 0;
15 for (k=0;k<7;k++)
17 tmp += exc[i-pitch+k+maxj-6];
19 interp[i] = tmp;
23 int main()
25 float *exc = calloc(126,sizeof(float));
26 float *interp = calloc(80,sizeof(float));
27 int pitch = -35;
29 check_vect ();
31 interp_pitch(exc, interp, pitch, 80);
32 free(exc);
33 free(interp);
34 return 0;
37 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
38 /* { dg-final { cleanup-tree-dump "vect" } } */