2 /* { dg-options "-O -fdump-tree-phiopt -fdump-tree-optimized -g" } */
6 __attribute__ ((noipa
, noinline
))
7 uint8_t three_min (uint8_t xc
, uint8_t xm
, uint8_t xy
) {
10 xk
= (uint8_t) (xc
< xy
? xc
: xy
);
12 xk
= (uint8_t) (xm
< xy
? xm
: xy
);
20 volatile uint8_t xy
= 255;
21 volatile uint8_t xm
= 0;
22 volatile uint8_t xc
= 127;
23 if (three_min (xc
, xm
, xy
) != 0)
28 /* After phiopt1, will be only 2 MIN_EXPR in the IR (including debug statements). */
29 /* xk will only have the final result so the extra debug info does not change anything. */
30 /* { dg-final { scan-tree-dump-times "MIN_EXPR" 2 "phiopt1" } } */
31 /* { dg-final { scan-tree-dump-times "MIN_EXPR" 2 "optimized" } } */
32 /* { dg-final { scan-tree-dump-times "MAX_EXPR" 0 "phiopt1" } } */