| /* { dg-require-effective-target vect_float } */ |
| /* { dg-do compile } */ |
| |
| #include <stdlib.h> |
| #include "../../tree-vect.h" |
| |
| __attribute__ ((noinline)) void |
| ggSpectrum_Set8(float * data, float d) |
| { |
| int i; |
| |
| for (i = 0; i < 8; i++) |
| data[i] = d; |
| } |
| |
| __attribute__ ((noinline)) void |
| ggSpectrum_Set20(float * data, float d) |
| { |
| int i; |
| |
| for (i = 0; i < 20; i++) |
| data[i] = d; |
| } |
| |
| /* { dg-final { scan-tree-dump-times "vectorization not profitable" 1 "vect" } } */ |
| /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */ |
| /* { dg-final { cleanup-tree-dump "vect" } } */ |
| |