hppa: Fix ICE caused by mismatched predicate and constraint in xmpyu patterns
[official-gcc.git] / gcc / testsuite / gcc.dg / loop-unswitch-1.c
blob196cb64735e7c3f0e4b393ceb2a69bc1b08fd5c9
1 /* For PR rtl-optimization/27735 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-all -fno-finite-loops" } */
5 void set_color(void);
6 void xml_colorize_line(unsigned int *p, int state)
8 int c;
9 switch(state)
11 case 1:
12 goto parse_tag;
13 case 2:
14 goto parse_comment;
17 for(;;)
19 c = *p;
20 if (c == '<' && state == 0)
22 parse_comment: ;
23 while (*p != '\n')
24 state = 3;
25 parse_tag: ;
26 while (*p != '\n')
27 state = 0;
28 set_color();
30 else
31 p++;
35 /* Test that we actually unswitched something. */
36 /* { dg-final { scan-tree-dump "unswitching loop" "unswitch" } } */