aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr25224.c
blob: 56f46986242b6701b16c1a48fbeb2d1b9362e873 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-options "-funswitch-loops" } */
/* { dg-require-effective-target indirect_jumps } */
/* { dg-require-effective-target label_values } */

static float rgam;
extern void *jmp(void *);

void drotmg(float d1) {
void *labels[] = { &&L170, &&L180, 0 };

  for(;;) {
    goto *jmp(labels);
    if (d1 <= rgam)
      goto L170;

L170:
    if (d1 <= rgam)
      goto L170;
  }

L180:
  goto L170;
}