summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/max-insns-skipped.c
blob: 0a11554b52b0415b6bac3555c87cb9008d133b44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do assemble { target arm_thumb2 } } */
/* { dg-options " -Os " } */

int t (int a, int b, int c, int d)
{
  int r;
  if (a > 0) {
    r = a + b;
    r += 0x456;
    r *= 0x1234567;
    }
  else {
    r = b - a;
    r -= 0x123;
    r *= 0x12387;
    r += d;
   }
  return r;
}

/* { dg-final { object-size text <= 40 } } */