aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr92608.c
blob: 3a6beaba44135c56aedb0c1c0fdeef7f1a62f854 (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
/* { dg-do compile } */
/* { dg-additional-options "-funswitch-loops" } */

int op, bs;

void
q0 (void)
{
  op += 1 % (op == bs);
}

void __attribute__ ((returns_twice))
co (void)
{
}

void __attribute__ ((simd))
uq (void)
{
  q0 ();
  co ();

  while (bs < 1)
    ++bs;
}