blob: 9463535c6ca1b2e74861209850097bf08bab7af5 [file] [log] [blame]
/* This is highly dependent on branch costing, so make it opt-in. */
/* { dg-do compile { target { i?86-*-* x86_64-*-* } } } */
/* { dg-options "-O2 -fno-tree-vrp -fdump-tree-dom-details" } */
int f(int x, int y, int a, int b)
{
int ret = 10;
if (a == x
&& b == y
&& a == b)
ret = x - y;
return ret;
}
/* { dg-final { scan-tree-dump "Folded to: ret_\[0-9\]+ = 0;" "dom2" { xfail *-*-* } } } */