1 /* Test for cross x86_64<->w64 abi standard calls.
3 /* Origin: Kai Tietz <kai.tietz@onevision.com> */
5 /* { dg-options "-std=gnu99 -ffast-math" } */
8 extern void abort (void);
11 CALLABI_CROSS
func_cross (long double a
, double b
, float c
, long d
, int e
,
15 ret
= a
+ (long double) b
+ (long double) c
;
16 ret
*= (long double) (d
+ (long) e
);
18 ret
+= func_cross (a
,b
,c
,d
,e
,-f
);
23 CALLABI_NATIVE
func_native (long double a
, double b
, float c
, long d
, int e
,
27 ret
= a
+ (long double) b
+ (long double) c
;
28 ret
*= (long double) (d
+ (long) e
);
30 ret
+= func_native (a
,b
,c
,d
,e
,-f
);
36 if (func_cross (1.0,2.0,3.0,1,2,3)
37 != func_native (1.0,2.0,3.0,1,2,3))