summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/divide-1.c
blob: 66bc3745bcc7855f1f102fbf2b0fc843e187ae1b (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 (-a)/10;
}


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

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