annotate gcc/testsuite/gcc.dg/tree-ssa/ldist-17.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 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-O2 -ftree-loop-distribution -ftree-loop-distribute-patterns -fdump-tree-ldist-details -fdisable-tree-cunroll -fdisable-tree-cunrolli" } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 typedef int mad_fixed_t;
kono
parents:
diff changeset
5 struct mad_pcm
kono
parents:
diff changeset
6 {
kono
parents:
diff changeset
7 unsigned int samplerate;
kono
parents:
diff changeset
8 unsigned short channels;
kono
parents:
diff changeset
9 unsigned short length;
kono
parents:
diff changeset
10 mad_fixed_t samples[2][1152];
kono
parents:
diff changeset
11 };
kono
parents:
diff changeset
12 struct mad_synth
kono
parents:
diff changeset
13 {
kono
parents:
diff changeset
14 mad_fixed_t filter[2][2][2][16][8];
kono
parents:
diff changeset
15 unsigned int phase;
kono
parents:
diff changeset
16 struct mad_pcm pcm;
kono
parents:
diff changeset
17 };
kono
parents:
diff changeset
18 void mad_synth_mute (struct mad_synth *synth);
kono
parents:
diff changeset
19 void
kono
parents:
diff changeset
20 mad_synth_mute (struct mad_synth *synth)
kono
parents:
diff changeset
21 {
kono
parents:
diff changeset
22 unsigned int ch;
kono
parents:
diff changeset
23 unsigned int s;
kono
parents:
diff changeset
24 unsigned int v;
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 ch = 0U;
kono
parents:
diff changeset
27 while (ch < 2U)
kono
parents:
diff changeset
28 {
kono
parents:
diff changeset
29 s = 0U;
kono
parents:
diff changeset
30 while (s < 16U)
kono
parents:
diff changeset
31 {
kono
parents:
diff changeset
32 v = 0U;
kono
parents:
diff changeset
33 while (v < 8U)
kono
parents:
diff changeset
34 {
kono
parents:
diff changeset
35 synth->filter[ch][1][1][s][v] = 0;
kono
parents:
diff changeset
36 synth->filter[ch][1][0][s][v] = 0;
kono
parents:
diff changeset
37 synth->filter[ch][0][1][s][v] = 0;
kono
parents:
diff changeset
38 synth->filter[ch][0][0][s][v] = 0;
kono
parents:
diff changeset
39 v++;
kono
parents:
diff changeset
40 }
kono
parents:
diff changeset
41 s++;
kono
parents:
diff changeset
42 }
kono
parents:
diff changeset
43 ch++;
kono
parents:
diff changeset
44 }
kono
parents:
diff changeset
45 return;
kono
parents:
diff changeset
46 }
kono
parents:
diff changeset
47
kono
parents:
diff changeset
48 /* { dg-final { scan-tree-dump "Loop nest . distributed: split to 0 loops and 1 library calls" "ldist" } } */
kono
parents:
diff changeset
49 /* { dg-final { scan-tree-dump-times "generated memset zero" 1 "ldist" } } */