(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
arm/
aapcs/
bitfield2.c
       1  /* Test AAPCS layout (alignment).  */
       2  
       3  /* { dg-do run { target arm_eabi } } */
       4  /* { dg-require-effective-target arm32 } */
       5  /* { dg-options "-O" } */
       6  
       7  #ifndef IN_FRAMEWORK
       8  #define TESTFILE "bitfield2.c"
       9  
      10  typedef unsigned int alint __attribute__((aligned (8)));
      11  
      12  struct bf
      13  {
      14    alint a: 17;
      15    alint b: 15;
      16  } v = {1, 1};
      17  
      18  #include "abitest.h"
      19  #else
      20    ARG (int, 7, R0)
      21    ARG (int, 9, R1)
      22    ARG (int, 11, R2)
      23    /* Alignment of the bitfield type should affect alignment of the overall
      24       type, so R3 not used.  */
      25    LAST_ARG (struct bf, v, STACK)
      26  #endif