(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
aapcs64/
va_arg-15.c
       1  /* Test AAPCS64 layout and __builtin_va_start.
       2  
       3     Pass named __128int argument on stack.  */
       4  
       5  /* { dg-do run { target aarch64*-*-* } } */
       6  
       7  #ifndef IN_FRAMEWORK
       8  #define AAPCS64_TEST_STDARG
       9  #define TESTFILE "va_arg-15.c"
      10  #include "type-def.h"
      11  
      12  union int128_t qword;
      13  
      14  #define HAS_DATA_INIT_FUNC
      15  void
      16  init_data ()
      17  {
      18    /* Init signed quad-word integer.  */
      19    qword.l64 = 0xfdb9753102468aceLL;
      20    qword.h64 = 0xeca8642013579bdfLL;
      21  }
      22  
      23  #include "abitest.h"
      24  #else
      25    ARG (int, 1, W0, 0)
      26    ARG (int, 2, W1, 1)
      27    ARG (int, 3, W2, 2)
      28    ARG (int, 4, W3, 3)
      29    ARG (int, 5, W4, 4)
      30    ARG (int, 6, W5, 5)
      31    ARG (int, 7, W6, 6)
      32    ARG (__int128, qword.i, STACK, LAST_NAMED_ARG_ID)
      33    DOTS
      34  #ifndef __AAPCS64_BIG_ENDIAN__
      35    LAST_ANON (int, 8, STACK + 16, 8)
      36  #else
      37    LAST_ANON (int, 8, STACK + 20, 8)
      38  #endif
      39  #endif