Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/aapcs64/test_dfp_14.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_14.c"
8
9
10 struct y
11 {
12 int p;
13 int q;
14 int r;
15 int s;
16 } v = { 1, 2, 3, 4 };
17
18 struct z
19 {
20 _Decimal64 x[4];
21 };
22
23 struct z a = { 5.0dd, 6.0dd, 7.0dd, 8.0dd };
24 struct z b = { 9.0dd, 10.0dd, 11.0dd, 12.0dd };
25
26 #include "abitest.h"
27 #else
28 ARG(int, 7, W0)
29 ARG(int, 9, W1)
30 ARG(struct z, a, D0)
31 ARG(_Decimal64, 1.0dd, D4)
32 ARG(struct z, b, STACK)
33 ARG(int, 4, W2)
34 LAST_ARG(_Decimal64, 0.5dd, STACK+32)
35 #endif