view gcc/testsuite/gcc.dg/tree-ssa/minmax-1.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-optimized" } */

static int min(int a,int b){return (a<b)?a:b;}
static int max(int a,int b){return (a<b)?b:a;}
int f(int x){return max(x,-__INT_MAX__-1);}
int g(int x){return min(x,__INT_MAX__);}

/* { dg-final { scan-tree-dump-times "return x_\[0-9\]+.D.;" 2 "optimized" } } */