OSDN Git Service

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