AVR: target/84211 - Add a post reload register optimization pass.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr24257.c
blobd685df63d52d9e84b2abe773dad6948e9d5c896c
1 /* { dg-do compile } */
2 /* { dg-options "-fgcse -fgcse-sm" } */
4 typedef struct A {
5 int buf, left;
6 } A;
8 static void flush(A *s, int n)
10 s->buf <<= n;
12 while (s->left < 32) {
13 s->buf <<= 8;
14 s->left += 8;
17 s->buf=0;
20 void oof(A *s, int n)
22 s->buf = n;
23 s->left = n;
25 flush(s, n);