2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / fast-math-pr35982.c
blob6a01782bb3db4cc85c3790201894509e75bee6f9
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_float } */
3 /* { dg-require-effective-target vect_int } */
4 /* { dg-require-effective-target vect_intfloat_cvt } */
6 struct mem
8 float avg;
9 int len;
12 float method2_int16 (struct mem *mem)
14 int i;
15 float avg;
17 for (i = 0; i < 100; ++i)
18 avg += mem[i].avg * (float) mem[i].len;
20 return avg;
23 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_extract_even_odd_wide } } } */
24 /* { dg-final { scan-tree-dump-times "vectorized 0 loops" 1 "vect" { xfail vect_extract_even_odd_wide } } } */
25 /* { dg-final { cleanup-tree-dump "vect" } } */