annotate gcc/testsuite/gcc.c-torture/compile/pr29250.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* We used to ICE because EXPAND_SUM was being used for all recursive calls
kono
parents:
diff changeset
2 to expand_expr. */
kono
parents:
diff changeset
3 struct TSparseEntry
kono
parents:
diff changeset
4 {
kono
parents:
diff changeset
5 int feat_index;
kono
parents:
diff changeset
6 double entry;
kono
parents:
diff changeset
7 };
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 struct TSparse
kono
parents:
diff changeset
10 {
kono
parents:
diff changeset
11 int vec_index;
kono
parents:
diff changeset
12 int num_feat_entries;
kono
parents:
diff changeset
13 struct TSparseEntry *features;
kono
parents:
diff changeset
14 };
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 void
kono
parents:
diff changeset
17 get_full_feature_matrix (struct TSparse* sparse_feature_matrix, int num_vec)
kono
parents:
diff changeset
18 {
kono
parents:
diff changeset
19 double *fm;
kono
parents:
diff changeset
20 int v, f;
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 for (v=0; v < num_vec; v++)
kono
parents:
diff changeset
23 {
kono
parents:
diff changeset
24 for (f=0; f < sparse_feature_matrix[v].num_feat_entries; f++)
kono
parents:
diff changeset
25 {
kono
parents:
diff changeset
26 long long offs = sparse_feature_matrix[v].vec_index
kono
parents:
diff changeset
27 + sparse_feature_matrix[v].features[f].feat_index;
kono
parents:
diff changeset
28 fm[offs] = sparse_feature_matrix[v].features[f].entry;
kono
parents:
diff changeset
29 }
kono
parents:
diff changeset
30 }
kono
parents:
diff changeset
31 }
kono
parents:
diff changeset
32