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

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