2 /* Origin: <pierre.nguyen-tuong@asim.lip6.fr> */
4 /* Verify that __builtin_apply behaves correctly on targets
5 with pre-pushed arguments (e.g. SPARC). */
8 /* { dg-skip-if "" { "rx-*-*" } "*" { "" } } */
12 #if defined(__ARM_PCS) || defined(__epiphany__)
13 /* For Base AAPCS, NAME is passed in r0. D is passed in r2 and r3.
14 E, F and G are passed on stack. So the size of the stack argument
16 #define STACK_ARGUMENTS_SIZE 20
18 #define STACK_ARGUMENTS_SIZE 64
21 extern void abort(void);
23 void foo(char *name, double d, double e, double f, int g)
29 void bar(char *name, ...)
31 __builtin_apply(foo, __builtin_apply_args(), STACK_ARGUMENTS_SIZE);
36 bar("eeee", 5.444567, 8.90765, 4.567789, INTEGER_ARG);