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 "align2.c"
       9  
      10  /* The underlying struct here has alignment 4.  */
      11  typedef struct __attribute__((aligned (8)))
      12    {
      13      int x;
      14      int y;
      15    } overaligned;
      16  
      17  /* A couple of instances, at 8-byte-aligned memory locations.  */
      18  overaligned a = { 2, 3 };
      19  overaligned b = { 5, 8 };
      20  
      21  #include "abitest.h"
      22  #else
      23    ARG (int, 7, R0)
      24    /* Alignment should be 4.  */
      25    ARG (overaligned, a, R1)
      26    ARG (int, 9, R3)
      27    ARG (int, 10, STACK)
      28    /* Alignment should be 4.  */
      29    LAST_ARG (overaligned, b, STACK + 4)
      30  #endif