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 } */
12 float method2_int16 (struct mem
*mem
)
17 for (i
= 0; i
< 100; ++i
)
18 avg
+= mem
[i
].avg
* (float) mem
[i
].len
;
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" } } */