Merged revisions 143552,143554,143557,143560,143562,143564-143567,143570-143573,14357...
[official-gcc.git] / gcc / testsuite / gcc.dg / graphite / pr39260.c
blob066b5bde8c21f3cbd45227ef83769451974f48d7
1 /* { dg-options "-O2 -fgraphite-identity -ffast-math" } */
3 VBR_encode_frame (int mode_gr, int channels_out, int max_bits[2][2])
5 int max_nbits_ch[2][2];
6 int gr, ch;
7 for (gr = 0; gr < mode_gr; ++gr)
9 float f[2], s = 0;
10 for (ch = 0; ch < channels_out; ++ch)
11 if (max_nbits_ch[gr][ch] > 0)
12 s += f[ch];
13 for (ch = 0; ch < channels_out; ++ch)
14 if (s > 0)
15 max_nbits_ch[gr][ch] = 7680 * f[ch] / s;