| 1 |
/* Test AAPCS64 layout. |
| 2 |
|
| 3 |
C.8 If the argument has an alignment of 16 then the NGRN is rounded up |
| 4 |
the next even number. |
| 5 |
|
| 6 |
The case of a small struture containing only one 16-byte aligned |
| 7 |
quad-word integer is covered in this test. */ |
| 8 |
|
| 9 |
/* { dg-do run { target aarch64*-*-* } } */ |
| 10 |
|
| 11 |
#ifndef IN_FRAMEWORK |
| 12 |
#define TESTFILE "test_align-2.c" |
| 13 |
#include "type-def.h" |
| 14 |
|
| 15 |
struct y |
| 16 |
{ |
| 17 |
union int128_t v; |
| 18 |
} w; |
| 19 |
|
| 20 |
struct x |
| 21 |
{ |
| 22 |
long long p; |
| 23 |
int q; |
| 24 |
} s = {0xDEADBEEFCAFEBABELL, 0xFEEBDAED}; |
| 25 |
|
| 26 |
#define HAS_DATA_INIT_FUNC |
| 27 |
void init_data () |
| 28 |
{ |
| 29 |
/* Init signed quad-word integer. */ |
| 30 |
w.v.l64 = 0xfdb9753102468aceLL; |
| 31 |
w.v.h64 = 0xeca8642013579bdfLL; |
| 32 |
} |
| 33 |
|
| 34 |
#include "abitest.h" |
| 35 |
#else |
| 36 |
ARG(int, 0xAB, W0) |
| 37 |
ARG(struct y, w, X2) |
| 38 |
ARG(int, 0xCD, W4) |
| 39 |
ARG(struct x, s, X5) |
| 40 |
LAST_ARG(int, 0xFF00FF00, W7) |
| 41 |
|
| 42 |
#endif |