summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/minmax-2.c
blob: a5cdf93eb543cb51ab8726804e974ed2d796db7e (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler "test" } } */
/* { dg-final { scan-assembler-not "cmp" } } */
#define max(a,b) (((a) > (b))? (a) : (b))
unsigned int
t(unsigned int a)
{
  return (max(a,1));
}