Merge from mainline
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / cmov6.c
blob44dab76c68ae96b0b280c2805b4b0b2af55ea828
1 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
2 /* { dg-options "-O2 -march=k8" } */
3 /* { dg-final { scan-assembler "cmov\[^6\]" } } */
5 /* Verify that blocks are converted to conditional moves. */
6 extern int bar (int, int);
7 int foo (int c, int d, int e)
9 int a, b;
11 if (c)
13 a = 10;
14 b = d;
16 else
18 a = e;
19 b = 20;
21 return bar (a, b);