(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
aapcs64/
test_align-6.c
       1  /* Test AAPCS layout (alignment).  */
       2  
       3  /* { dg-do run { target aarch64*-*-* } } */
       4  
       5  #ifndef IN_FRAMEWORK
       6  #define TESTFILE "test_align-6.c"
       7  
       8  /* The underlying struct here has alignment 8.  */
       9  typedef struct __attribute__ ((__aligned__ (16)))
      10    {
      11      long x;
      12      long y;
      13    } overaligned;
      14  
      15  /* A couple of instances, at 16-byte-aligned memory locations.  */
      16  overaligned a = { 2, 3 };
      17  overaligned b = { 5, 8 };
      18  overaligned c = { 13, 21 };
      19  
      20  #include "abitest.h"
      21  #else
      22    ARG (int, 7, W0)
      23    /* Natural alignment should be 8.  */
      24    ARG (overaligned, a, X1)
      25    ARG (int, 9, W3)
      26    ARG (int, 11, W4)
      27    ARG (overaligned, b, X5)
      28    ARG (int, 15, W7)
      29  #ifndef __AAPCS64_BIG_ENDIAN__
      30    ARG (int, 10, STACK)
      31  #else
      32    ARG (int, 10, STACK + 4)
      33  #endif
      34    /* Natural alignment should be 8.  */
      35    LAST_ARG (overaligned, c, STACK + 8)
      36  #endif