Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/minmax-2.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 1830386684a0 |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O -fstrict-overflow -fdump-tree-optimized" } */ /* { dg-add-options c99_runtime } */ /* { dg-require-effective-target c99_runtime } */ static int max(int a,int b){return (a<b)?b:a;} int f(int x,int y){return max(-x,-y);} int g(int x,int y){return max(~x,~y);} double h(double x,double y){return __builtin_fmax(-x,-y);} /* { dg-final { scan-tree-dump-times "MIN_EXPR" 2 "optimized" } } */ /* { dg-final { scan-tree-dump "__builtin_fmin" "optimized" } } */