1  /* Test AAPCS64 layout and __builtin_va_arg.
       2  
       3     Miscellaneous test: HFA anonymous parameter passed in SIMD/FP regs.  */
       4  
       5  /* { dg-do run { target aarch64*-*-* } } */
       6  
       7  #ifndef IN_FRAMEWORK
       8  #define AAPCS64_TEST_STDARG
       9  #define TESTFILE "va_arg_dfp-9.c"
      10  
      11  struct z
      12  {
      13    _Decimal64 x[4];
      14  };
      15  
      16  _Decimal64 d1 = 25.0dd;
      17  struct z a = { 5.0dd, 6.0dd, 7.0dd, 8.0dd };
      18  struct z b = { 9.0dd, 10.0dd, 11.0dd, 12.0dd };
      19  
      20  #include "abitest.h"
      21  #else
      22    ARG(_Decimal64, 11.0dd, D0, LAST_NAMED_ARG_ID)
      23    DOTS
      24    ANON(int, 8, W0, 1)
      25    ANON(struct z, a, D1, 2)
      26    ANON(struct z, b, STACK, 3)
      27    ANON(int, 5, W1, 4)
      28    ANON(_Decimal64, d1, STACK+32, 5)
      29    LAST_ANON(_Decimal64, 0.5dd, STACK+40, 6)
      30  
      31  #endif