| 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-8.c" |
| 10 |
|
| 11 |
struct z |
| 12 |
{ |
| 13 |
_Decimal64 x[4]; |
| 14 |
}; |
| 15 |
|
| 16 |
struct z a = { 5.0dd, 6.0dd, 7.0dd, 8.0dd }; |
| 17 |
|
| 18 |
#include "abitest.h" |
| 19 |
#else |
| 20 |
ARG(int, 0xdeadbeef, W0, LAST_NAMED_ARG_ID) |
| 21 |
DOTS |
| 22 |
ANON(_Decimal64, 4.0dd, D0, 1) |
| 23 |
LAST_ANON(struct z, a, D1, 2) |
| 24 |
|
| 25 |
#endif |