summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/i386-cmov2.c
blob: f4edfbf64c01470dcbe8993d4d344a2f997b5930 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -march=athlon" } */
/* { dg-final { scan-assembler "sbb" } } */

/* This conditional move is fastest to be done using sbb.  */
t(unsigned int a, unsigned int b)
{
  return (a<=b?5:-5);
}