aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr119471.c
blob: 4c55d85f77c451e4da2b20a0835128dedde01298 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-evrp" } */

int fa(int a, int b)
{
  int c = a * b;
  if (c != 0)
    return (a != 0);
  return 0;
}
int fb(int a, int b)
{
  int c = a * b;
  if (c != 0)
    return (b != 0);
  return 0;
}

/* { dg-final { scan-tree-dump-times "PHI <1" 2 "evrp" } } */