| 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_9.c" |
| 8 |
|
| 9 |
struct y |
| 10 |
{ |
| 11 |
int p; |
| 12 |
int q; |
| 13 |
int r; |
| 14 |
int s; |
| 15 |
} v = { 1, 2, 3, 4 }; |
| 16 |
|
| 17 |
struct z |
| 18 |
{ |
| 19 |
_Decimal64 x[4]; |
| 20 |
}; |
| 21 |
|
| 22 |
struct z a = { 5.0dd, 6.0dd, 7.0dd, 8.0dd }; |
| 23 |
struct z b = { 9.0dd, 10.0dd, 11.0dd, 12.0dd }; |
| 24 |
|
| 25 |
#include "abitest.h" |
| 26 |
#else |
| 27 |
ARG(int, 7, W0) |
| 28 |
ARG(struct y, v, X1) |
| 29 |
ARG(struct z, a, D0) |
| 30 |
ARG(struct z, b, D4) |
| 31 |
LAST_ARG(_Decimal64, 0.5dd, STACK) |
| 32 |
#endif |