blob: 4580da0d60a45629515f28ed6f9c043e11981464 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-require-effective-target arm_eabi } */
/* { dg-options "-O2" } */
typedef struct {
volatile unsigned long a:8;
volatile unsigned long b:8;
volatile unsigned long c:16;
} BitStruct;
BitStruct bits;
unsigned long foo ()
{
return bits.c;
}
/* { dg-final { scan-assembler "ldr\[\\t \]+\[^\n\]*,\[\\t \]*\\\[\[^\n\]*\\\]" } } */