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__((stdcall)) stdcall_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_STDCALL, 13,
47 &ffi_type_float, args) == FFI_OK);
49 ff = stdcall_many(fa[0], fa[1],
54 fa[10], fa[11], fa[12]);
56 ffi_call(&cif, FFI_FN(stdcall_many), &f, values);
58 if (f - ff < FLT_EPSILON)
59 printf("stdcall many arg tests ok!\n");