Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-5.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-iftoswitch-optimized" } */
3
4 int crud (unsigned char c)
5 {
6 return (((((((((((int) c == 46) || (int) c == 44)
7 || (int) c == 58) || (int) c == 60) || (int) c == 62)
8 || (int) c == 64) || (int) c == 34) || (int) c == 92)
9 || (int) c == 39) != 0);
10 }
11
12 /* { dg-final { scan-tree-dump "Condition chain with \[^\n\r]\* BBs transformed into a switch statement." "iftoswitch" } } */