aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/cmpexactdiv-3.c
blob: 57e280b5c8f1f9d58d3e7c5306ecace02c0f1c33 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-optimized-raw" } */

int f(int*a,int*b){
  if(sizeof(__SIZE_TYPE__)!=sizeof(__PTRDIFF_TYPE__)) return -1;
  __SIZE_TYPE__ d = b - a;
  return d >= 5;
}

/* { dg-final { scan-tree-dump-not "exact_div_expr" "optimized" } } */