blob: 177a0cee02f2045231a39a3023f7e838914fa4d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -march=i686" } */
/* { dg-final { scan-assembler "cmov\[^6\]" } } */
/* Verify that blocks are converted to conditional moves. */
extern int bar (int, int);
int foo (int c, int d, int e)
{
int a, b;
if (c)
{
a = 10;
b = d;
}
else
{
a = e;
b = 20;
}
return bar (a, b);
}
|