/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-phiopt" } */ #include uint8_t three_max (uint8_t xc, uint8_t xm, uint8_t xy) { uint8_t xk; if (xc > xm) { xk = (uint8_t) (xc > xy ? xc : xy); } else { xk = (uint8_t) (xm > xy ? xm : xy); } return xk; } /* { dg-final { scan-tree-dump-times "MIN_EXPR" 0 "phiopt1" } } */ /* { dg-final { scan-tree-dump-times "MAX_EXPR" 3 "phiopt1" } } */