blob: 5425f1e920592c911771d93a4620448b06d51394 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* { dg-do compile } */
/* { dg-options "-O2" } */
int test (int a, int b)
{
int r;
if (a > 10)
{
r = a - b;
r += 10;
}
else
{
r = b - a;
r -= 7;
}
if (r > 0)
r -= 3;
return r;
}
/* { dg-final { scan-assembler-times "\tit" 2 { target arm_thumb2 } } } */
|