blob: 321db52bef86d757b8c3e7ee3b9391c588a34902 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-reassoc1-details" } */
/* LLVM LOCAL test not applicable */
/* { dg-require-fdump "" } */
int f(int a, int b)
{
/* MAX_EXPR <a, a> should cause it to be equivalent to a. */
int c = a>=b?a:b;
int d = c>=a?c:a;
return d;
}
/* { dg-final { scan-tree-dump-times "Equivalence:" 1 "reassoc1"} } */
/* { dg-final { cleanup-tree-dump "reassoc1" } } */