PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / graphite / pr39260.c
blob74977eae856d17f143366c16945f32d4651c18b9
1 /* { dg-options "-O2 -fgraphite-identity -ffast-math" } */
3 void
4 VBR_encode_frame (int mode_gr, int channels_out, int max_bits[2][2])
6 int max_nbits_ch[2][2];
7 int gr, ch;
8 for (gr = 0; gr < mode_gr; ++gr)
10 float f[2], s = 0;
11 for (ch = 0; ch < channels_out; ++ch)
12 if (max_nbits_ch[gr][ch] > 0)
13 s += f[ch];
14 for (ch = 0; ch < channels_out; ++ch)
15 if (s > 0)
16 max_nbits_ch[gr][ch] = 7680 * f[ch] / s;