rt_gccstream/gcc/testsuite/gcc.dg/tree-ssa/divide-2.c

15 lines
316 B
C

/* { 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" } } */