Split print_rtx into subroutines
[official-gcc.git] / gcc / testsuite / gcc.dg / pr45055.c
blob899de50498bdd5060e105041eb6171c24f1d475e
1 /* PR debug/45055 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -ftracer -fsched-pressure -funroll-loops -fschedule-insns -fcompare-debug" } */
4 /* { dg-require-effective-target scheduling } */
6 int colormap[10];
8 extern int bar ();
10 void
11 foo (int *img, int fp, int y, int *ptr, int depth, int c, int t, int xm)
13 int x, color, count;
14 for (; y; y--)
16 if (depth)
18 count = bar ();
19 for (x = xm; x; x--)
21 if (c != 1)
22 count = color = -1;
23 if (count == 0)
24 color = count = bar ();
25 if (color)
26 t = bar (fp);
27 *ptr++ = colormap[t];
30 switch (*img)
32 case 1:
33 bar ();
34 case 3:
35 case -1:
36 case -3:
37 bar ();
38 case -4:
39 bar ();