aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/arm/pr40835.c
blob: 76ad509ebd2a721ee86be65f78707b6cd4fd3dd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* { dg-options "-mthumb -Os" }  */
/* { dg-require-effective-target arm_thumb1_ok } */
/* { dg-final { scan-assembler-not "cmp" } } */

int bar();
void goo(int, int);

void eq()
{
  int v = bar();
  if (v == 0)
    return;
  goo(1, v);
}

void ge()
{
  int v = bar();
  if (v >= 0)
    return;
  goo(1, v);
}

void gt()
{
  int v = bar();
  if (v > 0)
    return;
  goo(1, v);
}

void lt()
{
  int v = bar();
  if (v < 0)
    return;
  goo(1, v);
}

void le()
{
  int v = bar();
  if (v <= 0)
    return;
  goo(1, v);
}

unsigned int foo();

void leu()
{
  unsigned int v = foo();
  if (v <= 0)
    return;
  goo(1, v);
}