Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / costmodel / ppc / costmodel-fast-math-vect-pr29925.c
blob34445dc6e8248759bf3b0cb048f9a2045e69e23b
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 /* PR92127, disable unroll to avoid unexpected profit calculation. */
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 "vectorization not profitable" 1 "vect" { xfail { vect_hw_misalign } } } } */