summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/divide-2.c
blob: 6cd86b21f97509e46e40e34b0a4dc6f4507b5e2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O1 -fstrict-overflow -fdump-tree-optimized" } */

int f(int a)
{
  return 10/-a;
}


/* { dg-final { scan-tree-dump-times "10 / -a" 0 "optimized"} } */
/* { dg-final { scan-tree-dump-times "-10 / a" 1 "optimized"} } */

/* { dg-final { cleanup-tree-dump "optimized" } } */