| 1 |
/* Test AAPCS64 layout. */ |
| 2 |
|
| 3 |
/* { dg-do run { target aarch64*-*-* } } */ |
| 4 |
|
| 5 |
#ifndef IN_FRAMEWORK |
| 6 |
#define TESTFILE "test_19.c" |
| 7 |
|
| 8 |
struct y |
| 9 |
{ |
| 10 |
int p1; |
| 11 |
int p2; |
| 12 |
float q; |
| 13 |
int r1; |
| 14 |
int r2; |
| 15 |
char x; |
| 16 |
} v = { -1, 1, 2.0f, 3, 18, 19, 20}; |
| 17 |
|
| 18 |
struct z |
| 19 |
{ |
| 20 |
double x[4]; |
| 21 |
}; |
| 22 |
|
| 23 |
struct z a = { 5.0, 6.0, 7.0, 8.0 }; |
| 24 |
struct z b = { 9.0, 10.0, 11.0, 12.0 }; |
| 25 |
|
| 26 |
#include "abitest.h" |
| 27 |
#else |
| 28 |
ARG(int, 7, W0) |
| 29 |
DOTS |
| 30 |
ANON(double, 4.0, 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 |