2 Purpose: Check stdcall many call on X86_WIN32 systems.
5 Originator: From the original ffitest.c */
7 /* { dg-do run { target i?86-*-cygwin* i?86-*-mingw* } } */
12 static float __attribute__((fastcall
)) fastcall_many(float f1
,
26 return ((f1
/f2
+f3
/f4
+f5
/f6
+f7
/f8
+f9
/f10
+f11
/f12
) * f13
);
38 for (ul
= 0; ul
< 13; ul
++)
40 args
[ul
] = &ffi_type_float
;
45 /* Initialize the cif */
46 CHECK(ffi_prep_cif(&cif
, FFI_FASTCALL
, 13,
47 &ffi_type_float
, args
) == FFI_OK
);
49 ff
= fastcall_many(fa
[0], fa
[1],
54 fa
[10], fa
[11], fa
[12]);
56 ffi_call(&cif
, FFI_FN(fastcall_many
), &f
, values
);
58 if (f
- ff
< FLT_EPSILON
)
59 printf("fastcall many arg tests ok!\n");