Debian Codegraph @

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

raw
1 /* PR tree-optimization/88702 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-iftoswitch-optimized" } */
4 /* { dg-additional-options "--param=case-values-threshold=3" { target { avr-*-* } } } */
5
6 int IsHTMLWhitespace(int aChar) {
7 return aChar == 0x0009 || aChar == 0x000A ||
8 aChar == 0x000C || aChar == 0x000D ||
9 aChar == 0x0020;
10 }
11
12 /* { dg-final { scan-tree-dump "Condition chain with \[^\n\r]\* BBs transformed into a switch statement." "iftoswitch" } } */