blob: b4ae2beeb08cf9ed765659208c876d227f81dfd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/* PR tree-optimization/95527 */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-original" } */
/* { dg-final { scan-tree-dump "a & 7\\) == 0" "original" } } */
/* { dg-final { scan-tree-dump "b & 63\\) != 0" "original" } } */
/* { dg-final { scan-tree-dump-times "return 0;" 2 "original" } } */
/* { dg-final { scan-tree-dump-times "return 1;" 2 "original" } } */
/* { dg-final { scan-tree-dump "g & 15\\) == 8" "original" } } */
/* { dg-final { scan-tree-dump "h & 255\\) != 128" "original" } } */
int
f1 (int a)
{
return __builtin_ctz (a) >= 3;
}
int
f2 (int b)
{
return __builtin_ctz (b) < 6;
}
int
f3 (int c)
{
return __builtin_ctz (c) < 0;
}
int
f4 (int d)
{
return __builtin_ctz (d) >= 0;
}
int
f5 (int e)
{
return __builtin_ctz (e) >= __SIZEOF_INT__ * __CHAR_BIT__;
}
int
f6 (int f)
{
return __builtin_ctz (f) < __SIZEOF_INT__ * __CHAR_BIT__;
}
int
f7 (int g)
{
return __builtin_ctz (g) == 3;
}
int
f8 (int h)
{
return __builtin_ctz (h) != 7;
}
|