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