aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-80.c
blob: 0176508906247e022bc6bae34d31e74a380c7321 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-fre1" } */

unsigned long a, b;
void foo (int m, int f)
{
  unsigned long tem = (unsigned long)m;
  a = tem + 1;
  if (f)
    {
      int tem2 = m + 1;
      b = (unsigned long)tem2;  /* Eliminated to a.  */
    }
}

/* { dg-final { scan-tree-dump-times "\\(long unsigned int\\)" 1 "fre1" } } */