]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/muldiv-2.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / muldiv-2.c
CommitLineData
0036218b
MG
1/* { dg-do compile } */
2/* { dg-options "-O1 -fdump-tree-optimized-raw" } */
3
4// 'a' should disappear, but we are not there yet
5
6int* f(int* a, int* b, int* c){
7 __PTRDIFF_TYPE__ d = b - a;
8 d += 1;
9 return a + d;
10}
11
12/* { dg-final { scan-tree-dump-not "div" "optimized" } } */