]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/pr96691.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr96691.c
CommitLineData
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
11int
12foo (int x)
13{
14 return (~x | 123) ^ 321;
15}
16
17int
18bar (int x)
19{
20 return (~x & 123) ^ 321;
21}