PR target/58901: reload: Handle SUBREG of MEM with a mode-dependent address
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr58901-1.c
blobe01dba056bd6f1df6da7272c4f0d53296ee955a4
1 typedef signed int __attribute__ ((mode (SI))) int_t;
3 struct s
5 int_t n;
6 int_t m : 1;
7 int_t l : 31;
8 };
10 int_t
11 movdi (int_t x, const struct s *s)
13 int_t i;
15 for (i = 0; i < x; i++)
17 const struct s t = s[i];
18 x += t.m ? 1 : 0;
20 return x;