]>
Commit | Line | Data |
---|---|---|
8fc183cc JJ |
1 | /* PR tree-optimization/96691 */ |
2 | /* { dg-do compile } */ | |
3 | /* { dg-options "-O2 -fdump-tree-optimized" } */ | |
4 | /* { dg-final { scan-tree-dump-times " \\\| 123;" 1 "optimized" } } */ | |
5 | /* { dg-final { scan-tree-dump-times " \\\& 123;" 1 "optimized" } } */ | |
6 | /* { dg-final { scan-tree-dump-times " \\\^ -315;" 1 "optimized" } } */ | |
7 | /* { dg-final { scan-tree-dump-times " \\\^ 314;" 1 "optimized" } } */ | |
8 | /* { dg-final { scan-tree-dump-not " \\\^ 321;" "optimized" } } */ | |
9 | /* { dg-final { scan-tree-dump-not " = ~" "optimized" } } */ | |
10 | ||
11 | int | |
12 | foo (int x) | |
13 | { | |
14 | return (~x | 123) ^ 321; | |
15 | } | |
16 | ||
17 | int | |
18 | bar (int x) | |
19 | { | |
20 | return (~x & 123) ^ 321; | |
21 | } |