Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/aapcs64/test_12.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_12.c"
8
9
10 struct y
11 {
12 long p;
13 long q;
14 long r;
15 long s;
16 } v = { 1, 2, 3, 4 };
17
18 struct y1
19 {
20 int p;
21 int q;
22 int r;
23 int s;
24 } v1 = { 1, 2, 3, 4 };
25
26
27 struct z
28 {
29 double x[4];
30 };
31
32 struct z a = { 5.0, 6.0, 7.0, 8.0 };
33 struct z b = { 9.0, 10.0, 11.0, 12.0 };
34
35 #define MYFUNCTYPE struct y
36
37 #include "abitest.h"
38 #else
39 ARG(int, 7, W0)
40 ARG(struct y1, v1, X1)
41 ARG(struct z, a, D0)
42 ARG(struct z, b, D4)
43 LAST_ARG(double, 0.5, STACK)
44 #endif