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