c++: Fix ICE with #embed/RAW_DATA_CST after list conversion [PR118671]
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / minmax-2.c
blob8990c188e0511b0ff0a93db7a89980a414b3abce
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" } } */