summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr71077.c
blob: 4753740f762d8f96e13b11010f03748cdeddd1f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR c++/71077  */
/* { dg-do link { target { i?86-*-* x86_64-*-* } } }  */
/* { dg-options "-O3 -flto -march=core-avx2" }  */

int *a;
int b, c, d, e;
int sched_analyze(void) {
 for (; b; b++) {
   c = 0;
   for (; c < 32; c++)
     if (b & 1 << c)
       a[b + c] = d;
 }
 return 0;
}

void schedule_insns(void) { e = sched_analyze(); }
int main(void) { schedule_insns(); }