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

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