1  /* Test AAPCS layout (VFP variant) */
       2  
       3  /* { dg-do run { target aarch64*-*-* } } */
       4  
       5  #ifndef IN_FRAMEWORK
       6  #define VFP
       7  #define TESTFILE "test_dfp_17.c"
       8  
       9  __complex__ x = 1.0+2.0i;
      10  
      11  struct y
      12  {
      13    int p;
      14    int q;
      15    int r;
      16    int s;
      17  } v = { 1, 2, 3, 4 };
      18  
      19  struct z
      20  {
      21    _Decimal64 x[4];
      22  };
      23  
      24  _Decimal32 f1 = 25.0df;
      25  struct z a = { 5.0dd, 6.0dd, 7.0dd, 8.0dd };
      26  struct z b = { 9.0dd, 10.0dd, 11.0dd, 12.0dd };
      27  
      28  #include "abitest.h"
      29  #else
      30    ARG(_Decimal64, 11.0dd, D0)
      31    DOTS
      32    ANON(struct z, a, D1)
      33    ANON(struct z, b, STACK)
      34    ANON(int , 5, W0)
      35  #ifndef __AAPCS64_BIG_ENDIAN__
      36    ANON(_Decimal32, f1, STACK+32) /* Note: no promotion to _Decimal64.  */
      37  #else
      38    ANON(_Decimal32, f1, STACK+36) /* Note: no promotion to _Decimal64.  */
      39  #endif
      40    LAST_ANON(_Decimal64, 0.5dd, STACK+40)
      41  #endif