1 /* Test AAPCS64 layout and __builtin_va_arg.
3 This test is focus on certain unnamed homogeneous floating-point aggregate
4 types passed in fp/simd registers. */
6 /* { dg-do run { target aarch64*-*-* } } */
9 #define AAPCS64_TEST_STDARG
10 #define TESTFILE "va_arg-6.c"
13 struct hfa_fx1_t hfa_fx1 = {12.345f};
14 struct hfa_dx2_t hfa_dx2 = {234.567, 345.678};
15 struct hfa_ffs_t hfa_ffs;
16 union hfa_union_t hfa_union;
18 #define HAS_DATA_INIT_FUNC
33 ARG (int, 1, X0, LAST_NAMED_ARG_ID)
35 ANON (struct hfa_ffs_t , hfa_ffs , S0 , 0)
36 ANON (union hfa_union_t, hfa_union, S4 , 1)
37 ANON (struct hfa_dx2_t , hfa_dx2 , D6 , 2)
38 ANON (struct hfa_fx1_t , hfa_fx1 , STACK , 3)
39 LAST_ANON(double , 1.0 , STACK+8, 4)