blob: 0563739c16963b074cd6aadd77540acde24c0e4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* { dg-do compile } */
/* { dg-options "-O3 -fdump-tree-cunroll-details" } */
int bits;
unsigned int size;
int max_code;
void
test ()
{
int code = 0;
while (code < max_code)
code |= ((unsigned int) (size >> (--bits)));
while (bits < (unsigned int)25)
bits += 8;
}
/* { dg-final { scan-tree-dump "Loop 2 iterates at most 4 times" "cunroll"} } */
/* { dg-final { cleanup-tree-dump "cunroll" } } */
|