(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
arm/
aapcs/
align_rec4.c
       1  /* Test AAPCS layout (alignment) for callee.  */
       2  
       3  /* { dg-do run { target arm_eabi } } */
       4  /* { dg-require-effective-target arm32 } */
       5  /* { dg-require-effective-target arm_neon_ok } */
       6  /* { dg-require-effective-target arm_neon_hw } */
       7  /* { dg-options "-O -fno-inline" } */
       8  /* { dg-add-options arm_neon } */
       9  
      10  #include <arm_neon.h>
      11  
      12  extern int memcmp (const void *s1, const void *s2, __SIZE_TYPE__ n);
      13  extern void abort (void);
      14  
      15  typedef __attribute__((aligned (4))) int32x4_t unalignedvec;
      16  
      17  unalignedvec a = {11, 13};
      18  unalignedvec b = {17, 19};
      19  
      20  void
      21  foo (int r0, unalignedvec r2, int s0, unalignedvec s8)
      22  {
      23    if (r0 != 2 || s0 != 6
      24        || memcmp ( (void *) &r2, (void *) &a, 16)
      25        || memcmp ( (void *) &s8, (void *) &b, 16))
      26      abort ();
      27  }
      28  
      29  int
      30  main (int argc, char **argv)
      31  {
      32    foo (2, a, 6, b);
      33    return 0;
      34  }