OSDN Git Service

* gcc.dg/i386-cadd.c: Compile using -march=k8.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / i386-cmov2.c
1 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
2 /* { dg-options "-O2 -march=k8" } */
3 /* { dg-final { scan-assembler "sbb" } } */
4
5 /* This conditional move is fastest to be done using sbb.  */
6 t(unsigned int a, unsigned int b)
7 {
8   return (a<=b?5:-5);
9 }