summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr59020.c
blob: 696c9df9ac16f4d0eb45bcdeafe4ccb537a7574e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR rtl-optimization/59020 */

/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -fmodulo-sched -fno-inline -march=corei7" } */

int a, b, d;
unsigned c;

void f()
{
  unsigned q;
  for(; a; a++)
    if(((c %= d && 1) ? : 1) & 1)
      for(; b; q++);
}