PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / arm / thumb-bitfld1.c
blob37630f1a1f7ac5a093b42e171abb78f8916ea37f
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_thumb1_ok } */
3 /* { dg-options "-O1 -mthumb" } */
5 struct foo
7 unsigned b31 : 1;
8 unsigned b30 : 1;
9 unsigned b29 : 1;
10 unsigned b28 : 1;
11 unsigned rest : 28;
14 unsigned
15 foo(a)
16 struct foo a;
18 return a.b30;
21 /* { dg-final { scan-assembler-times "lsl" 1 } } */
22 /* { dg-final { scan-assembler-times "lsr" 1 } } */