* config/i386/avx512fintrin.h (_mm512_set_epi16, _mm512_set_epi8,
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / aapcs64 / test_26.c
blob9b9a3a4804f65fee738d205cc2fea37280a7791d
1 /* Test AAPCS64 layout.
3 Test some small structures that should be passed in GPRs. */
5 /* { dg-do run { target aarch64*-*-* } } */
7 #ifndef IN_FRAMEWORK
8 #define TESTFILE "test_26.c"
10 struct y0
12 char ch;
13 } c0 = { 'A' };
15 struct y2
17 long long ll[2];
18 } c2 = { 0xDEADBEEF, 0xCAFEBABE };
20 struct y3
22 int i[3];
23 } c3 = { 56789, 67890, 78901 };
25 typedef float vf2_t __attribute__((vector_size (8)));
26 struct x0
28 vf2_t v;
29 } s0;
31 typedef short vh4_t __attribute__((vector_size (8)));
33 struct x1
35 vh4_t v[2];
36 } s1;
38 #define HAS_DATA_INIT_FUNC
39 void init_data ()
41 s0.v = (vf2_t){ 17.f, 18.f };
42 s1.v[0] = (vh4_t){ 345, 456, 567, 678 };
43 s1.v[1] = (vh4_t){ 789, 890, 901, 123 };
46 #include "abitest.h"
47 #else
48 ARG (struct y0, c0, X0)
49 ARG (struct y2, c2, X1)
50 ARG (struct y3, c3, X3)
51 ARG_NONFLAT (struct x0, s0, D0, f32in64)
52 ARG (struct x1, s1, D1)
53 LAST_ARG_NONFLAT (int, 89012, X5, i32in64)
54 #endif