blob: 76c7850fa10aeb240c5d83cd379c64a1ccdcf88c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* { 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" } } */
|