summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/cmov8.c
blob: 639fb62b0c06526a69a78d5e1d25a92eaa0b6110 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR target/36936 */
/* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -march=i686" } */
/* { dg-final { scan-assembler "cmov\[^8\]" } } */

int
foo (int x)
{
  if (x < 0)
    x = 1;
  return x;
}