Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / pr94600-7.c
blob81c5231e44c0a28c6355fe5ffeace85d03419300
1 /* { dg-do compile } */
2 /* { dg-require-effective-target size32plus } */
3 /* { dg-options "-fdump-rtl-final -O2 -fno-unroll-loops" } */
5 /* Target-as-parameter version of pr94600-3.c. */
7 typedef struct {
8 unsigned int f0 : 4;
9 unsigned int f1 : 11;
10 unsigned int f2 : 10;
11 unsigned int f3 : 7;
12 } t0 __attribute__((__aligned__(4)));
14 static t0 a0[] = {
15 { .f0 = 7, .f1 = 99, .f3 = 1, },
16 { .f0 = 7, .f1 = 251, .f3 = 1, },
17 { .f0 = 8, .f1 = 127, .f3 = 5, },
18 { .f0 = 5, .f1 = 1, .f3 = 1, },
19 { .f0 = 5, .f1 = 1, .f3 = 1, },
20 { .f0 = 5, .f1 = 1, .f3 = 1, },
23 void
24 foo(volatile t0 *b)
26 __SIZE_TYPE__ i;
27 for (i = 0; i < (sizeof (a0) / sizeof ((a0)[0])); i++) {
28 b[11] = a0[i];
32 /* { dg-final { scan-rtl-dump-times {\(mem/v} 1 "final" } } */
33 /* { dg-final { scan-rtl-dump-times {\(set \(mem/v} 1 "final" } } */