blob: eb703f5af86484794fe9434e783cddcbe3f54a62 (
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
29
30
|
/* { dg-require-effective-target vect_float } */
#include "tree-vect.h"
float x[1024];
float
test (void)
{
int i;
float gosa = 0.0;
for (i = 0; i < 1024; ++i)
{
float tem = x[i];
gosa += tem * tem;
}
return gosa;
}
int main (void)
{
check_vect ();
if (test () != 0.0)
abort ();
return 0;
}
/* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */
/* { dg-final { cleanup-tree-dump "vect" } } */
|