]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/cmpexactdiv-2.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / cmpexactdiv-2.c
1 /* { dg-do compile } */
2 /* { dg-options "-O -fstrict-overflow -fdump-tree-optimized-raw" } */
3
4 int f (long *a, long *b, long *c) {
5 __PTRDIFF_TYPE__ l1 = b - a;
6 __PTRDIFF_TYPE__ l2 = c - a;
7 return l1 < l2;
8 }
9
10 /* { dg-final { scan-tree-dump-not "minus_expr" "optimized" } } */
11 /* { dg-final { scan-tree-dump-not "exact_div_expr" "optimized" } } */