blob: 9cbe2b08962598e6825b708f6c403e58f01a42a4 [file] [log] [blame]
/* Test AAPCS layout (alignment). */
/* { dg-do run { target arm_eabi } } */
/* { dg-require-effective-target arm32 } */
/* { dg-options "-O" } */
#ifndef IN_FRAMEWORK
#define TESTFILE "bitfield2.c"
typedef unsigned int alint __attribute__((aligned (8)));
struct bf
{
alint a: 17;
alint b: 15;
} v = {1, 1};
#include "abitest.h"
#else
ARG (int, 7, R0)
ARG (int, 9, R1)
ARG (int, 11, R2)
/* Alignment of the bitfield type should affect alignment of the overall
type, so R3 not used. */
LAST_ARG (struct bf, v, STACK)
#endif