Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/switch-3.c

raw
1 /* { dg-options "-O2 -fdump-tree-switchlower1 -fdisable-tree-switchconv" } */
2
3 int cipher_to_alg(int cipher)
4 {
5 switch (cipher)
6 {
7 case 8: return 2;
8 case 16: return 3;
9 case 32: return 4;
10 case 64: return 6;
11 case 256: return 9;
12 case 512: return 10;
13 case 2048: return 11;
14 case 4096: return 12;
15 case 8192: return 13;
16 }
17 return 0;
18 }
19
20 /* { dg-final { scan-tree-dump-times "if \\(cipher\[^\n ]*" 12 "switchlower1" } } */