summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/reassoc-18.c
blob: ab7fe295aa36874addbf88ba25196c08bf04c015 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-reassoc1" } */

unsigned int
ETree_nFactorEntriesInFront (unsigned int b, unsigned int m)
{
  unsigned int nent = b*b + 2*b*m;
  return nent;
}

/* { dg-final { scan-tree-dump-times "\\\*" 2 "reassoc1" } } */
/* { dg-final { cleanup-tree-dump "reassoc1" } } */