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