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