PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr68502-1.c
blob4f7d0bfca38693877ff080842d6ef7abf3d3e17b
1 #include <stdlib.h>
2 #include "tree-vect.h"
4 typedef struct {
5 double *I;
6 double W;
7 double X;
8 double V;
9 double U;
10 double P;
11 double Q;
12 double R;
13 } f1_neuron;
15 f1_neuron *f1_layer;
17 int numf1s = 1000;
19 void __attribute__((noinline,noclone))
20 reset_nodes()
22 int i;
24 for (i=0;i<numf1s;i++)
26 f1_layer[i].W = 0.0;
27 f1_layer[i].X = 0.0;
28 f1_layer[i].V = 0.0;
29 f1_layer[i].U = 0.0;
30 f1_layer[i].P = 0.0;
31 f1_layer[i].Q = 0.0;
32 f1_layer[i].R = 0.0;
36 int main ()
38 int i;
39 check_vect ();
40 f1_layer = (f1_neuron *)malloc (numf1s * sizeof (f1_neuron));
41 for (i = 0; i < numf1s; i++)
42 f1_layer[i].I = (double *)-1;
43 reset_nodes ();
44 for (i = 0; i < numf1s; i++)
45 if (f1_layer[i].I != (double *)-1)
46 abort ();
47 return 0;