aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/muldiv-2.c
blob: 474741a248af6419436fb9ab63d03334d96631c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-optimized-raw" } */

// 'a' should disappear, but we are not there yet

int* f(int* a, int* b, int* c){
    __PTRDIFF_TYPE__ d = b - a;
    d += 1;
    return a + d;
}

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