gcc/testsuite/gcc.target/aarch64/aapcs64/test_10.c
raw| 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_10.c" |
| 8 | |
| 9 | struct z |
| 10 | { |
| 11 | double x[4]; |
| 12 | }; |
| 13 | |
| 14 | struct z a = { 5.0, 6.0, 7.0, 8.0 }; |
| 15 | struct z b = { 9.0, 10.0, 11.0, 12.0 }; |
| 16 | |
| 17 | #include "abitest.h" |
| 18 | #else |
| 19 | |
| 20 | ARG(int, 7, W0) |
| 21 | DOTS |
| 22 | ANON(struct z, a, D0) |
| 23 | ANON(struct z, b, D4) |
| 24 | ANON(double, 0.5, STACK) |
| 25 | LAST_ANON(double, 1.5, STACK+8) |
| 26 | #endif |