summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/minmax-2.c
blob: 2021aaa07776902ea08a0b5725b01210772592d5 (plain)
1
2
3
4
5
6
7
8
9
/* { 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))
t(unsigned int a)
{
  return (max(a,1));
}