| 1 |
/* Test AAPCS64 layout. */ |
| 2 |
|
| 3 |
/* { dg-do run { target aarch64*-*-* } } */ |
| 4 |
|
| 5 |
#ifndef IN_FRAMEWORK |
| 6 |
#define TESTFILE "test_dfp_19.c" |
| 7 |
|
| 8 |
struct y |
| 9 |
{ |
| 10 |
int p1; |
| 11 |
int p2; |
| 12 |
_Decimal32 q; |
| 13 |
int r1; |
| 14 |
int r2; |
| 15 |
char x; |
| 16 |
} v = { -1, 1, 2.0df, 3, 18, 19, 20}; |
| 17 |
|
| 18 |
struct z |
| 19 |
{ |
| 20 |
_Decimal64 x[4]; |
| 21 |
}; |
| 22 |
|
| 23 |
struct z a = { 5.0dd, 6.0dd, 7.0dd, 8.0dd }; |
| 24 |
struct z b = { 9.0dd, 10.0dd, 11.0dd, 12.0dd }; |
| 25 |
|
| 26 |
#include "abitest.h" |
| 27 |
#else |
| 28 |
ARG(int, 7, W0) |
| 29 |
DOTS |
| 30 |
ANON(_Decimal64, 4.0dd, D0) |
| 31 |
ANON(struct z, a, D1) |
| 32 |
ANON(struct z, b, STACK) |
| 33 |
PTR_ANON(struct y, v, X1) |
| 34 |
LAST_ANON(int, 10, W2) |
| 35 |
#endif |