1/* { dg-options "-mthumb -Os" }  */
2/* { dg-require-effective-target arm_thumb1_ok } */
3/* { dg-final { scan-assembler-not "cmp" } } */
4
5int bar();
6void goo(int, int);
7
8void eq()
9{
10  int v = bar();
11  if (v == 0)
12    return;
13  goo(1, v);
14}
15
16void ge()
17{
18  int v = bar();
19  if (v >= 0)
20    return;
21  goo(1, v);
22}
23
24void gt()
25{
26  int v = bar();
27  if (v > 0)
28    return;
29  goo(1, v);
30}
31
32void lt()
33{
34  int v = bar();
35  if (v < 0)
36    return;
37  goo(1, v);
38}
39
40void le()
41{
42  int v = bar();
43  if (v <= 0)
44    return;
45  goo(1, v);
46}
47
48unsigned int foo();
49
50void leu()
51{
52  unsigned int v = foo();
53  if (v <= 0)
54    return;
55  goo(1, v);
56}
57