aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/vrp-float-13.c
blob: f5a0164dd91b59d00229f87187f2742d9605e795 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do compile }
// { dg-options "-O2 -fno-thread-jumps -fdisable-tree-fre1 -fdump-tree-evrp-details" }

void a(float, float);
void b(float, float);

void foo(float x, float y)
{
  if (x != y)
    a (x,y);
  else if (x < y)
    b (x,y);
}

// Test that the false side of if(x != y) has a range for y.
// { dg-final { scan-tree-dump "2->4  \\(F\\) y_3\\(D\\)" "evrp" } }