aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr71594.c
blob: 468a9f6891c92ff76520af0eee242f08b01ae0cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "--param max-rtl-if-conversion-insns=2" } */

unsigned short a;
int b, c;
int *d;
void fn1() {
  *d = 24;
  for (; *d <= 65;) {
    unsigned short *e = &a;
    b = (a &= 0 <= 0) < (c ?: (*e %= *d));
    for (; *d <= 83;)
      ;
  }
}