aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/aarch64/aapcs64/va_arg-10.c
blob: 50b77005b326a3ed3d29dae2d8205b8008466ca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* Test AAPCS64 layout and __builtin_va_arg.

   Miscellaneous test: Anonymous arguments passed on the stack.  */

/* { dg-do run { target aarch64*-*-* } } */

#ifndef IN_FRAMEWORK
#define AAPCS64_TEST_STDARG
#define TESTFILE "va_arg-10.c"

struct z
{
  double x[4];
};

double d1 = 25.0;
double d2 = 103.0;
struct z a = { 5.0, 6.0, 7.0, 8.0 };
struct z b = { 9.0, 10.0, 11.0, 12.0 };

#include "abitest.h"
#else
  ARG(struct z, a, D0, 0)
  ARG(struct z, b, D4, LAST_NAMED_ARG_ID)
  DOTS
  ANON(double, d1, STACK, 2)
  LAST_ANON(double, d2, STACK+8, 3)

#endif