1 /* Test AAPCS64 layout */
3 /* C.7 If the argument is an Integral Type, the size of the argument is
4 less than or equal to 8 bytes and the NGRN is less than 8, the
5 argument is copied to the least significant bits in x[NGRN]. The
6 NGRN is incremented by one. The argument has now been allocated. */
8 /* { dg-do run { target aarch64*-*-* } } */
11 #define TESTFILE "test_1.c"
12 /* TODO: review if we need this */
13 #define RUNTIME_ENDIANNESS_CHECK
19 /* TODO: review the way of memcpy char, short, etc. */
20 #ifndef __AAPCS64_BIG_ENDIAN__
22 ARG(short, 0xBEEF, X3)
23 ARG(int, 0xDEADBEEF, X4)
25 /* TODO: need the model/qemu to be big-endian as well */
27 ARG(short, 0xBEEF, X3+6)
28 ARG(int, 0xDEADBEEF, X4+4)
30 LAST_ARG(long long, 0xDEADBEEFCAFEBABELL, X5)