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* } } */
11 static float __attribute__((stdcall)) stdcall_many(float f1,
25 return ((f1/f2+f3/f4+f5/f6+f7/f8+f9/f10+f11/f12) * f13);
37 for (ul = 0; ul < 13; ul++)
39 args[ul] = &ffi_type_float;
44 /* Initialize the cif */
45 CHECK(ffi_prep_cif(&cif, FFI_STDCALL, 13,
46 &ffi_type_float, args) == FFI_OK);
48 ff = stdcall_many(fa[0], fa[1],
53 fa[10], fa[11], fa[12]);
55 ffi_call(&cif, FFI_FN(stdcall_many), &f, values);
57 if (f - ff < FLT_EPSILON)
58 printf("stdcall many arg tests ok!\n");