1 /* { dg-do compile } */
2 /* { dg-options "-O -fstrict-overflow -fdump-tree-optimized" } */
4 static int max(int a
,int b
){return (a
<b
)?b
:a
;}
5 int f(int x
,int y
){return max(-x
,-y
);}
6 int g(int x
,int y
){return max(~x
,~y
);}
7 double h(double x
,double y
){return __builtin_fmax(-x
,-y
);}
9 /* { dg-final { scan-tree-dump-times "MIN_EXPR" 2 "optimized" } } */
10 /* { dg-final { scan-tree-dump "__builtin_fmin" "optimized" } } */