1 /* { dg-options "-Wall" } */
3 /* C99 6.5.2.2 Function calls.
4 Test scalar passing and return values involving decimal floating
9 /* A handful of functions that return their Nth _Decimal32
10 argument with mixed types in parameter list. */
13 arg0_32 (_Decimal32 arg0
, int arg1
, unsigned int arg2
,
14 float arg3
, double arg4
, long double arg5
)
20 arg1_32 (int arg0
, _Decimal32 arg1
, unsigned int arg2
,
21 float arg3
, double arg4
, long double arg5
)
27 arg2_32 (int arg0
, unsigned int arg1
, _Decimal32 arg2
,
28 float arg3
, double arg4
, long double arg5
)
35 arg3_32 (int arg0
, unsigned int arg1
, float arg2
,
36 _Decimal32 arg3
, double arg4
, long double arg5
)
42 arg4_32 (int arg0
, unsigned int arg1
, float arg2
,
43 double arg3
, _Decimal32 arg4
, long double arg5
)
49 arg5_32 (int arg0
, unsigned int arg1
, float arg2
,
50 double arg3
, long double arg4
, _Decimal32 arg5
)
55 /* A handful of functions that return their Nth _Decimal64
56 argument with mixed types in parameter list. */
59 arg0_64 (_Decimal64 arg0
, int arg1
, unsigned int arg2
,
60 float arg3
, double arg4
, long double arg5
)
66 arg1_64 (int arg0
, _Decimal64 arg1
, unsigned int arg2
,
67 float arg3
, double arg4
, long double arg5
)
73 arg2_64 (int arg0
, unsigned int arg1
, _Decimal64 arg2
,
74 float arg3
, double arg4
, long double arg5
)
80 arg3_64 (int arg0
, unsigned int arg1
, float arg2
,
81 _Decimal64 arg3
, double arg4
, long double arg5
)
87 arg4_64 (int arg0
, unsigned int arg1
, float arg2
,
88 float arg3
, _Decimal64 arg4
, long double arg5
)
94 arg5_64 (int arg0
, unsigned int arg1
, float arg2
,
95 double arg3
, long double arg4
, _Decimal64 arg5
)
100 /* A handful of functions that return their Nth _Decimal128
101 argument with mixed types in parameter list. */
104 arg0_128 (_Decimal128 arg0
, int arg1
, unsigned int arg2
,
105 float arg3
, double arg4
, long double arg5
)
110 arg1_128 (int arg0
, _Decimal128 arg1
, unsigned int arg2
,
111 float arg3
, double arg4
, long double arg5
)
117 arg2_128 (int arg0
, unsigned int arg1
, _Decimal128 arg2
,
118 float arg3
, double arg4
, long double arg5
)
124 arg3_128 (int arg0
, unsigned int arg1
, float arg2
,
125 _Decimal128 arg3
, double arg4
, long double arg5
)
131 arg4_128 (int arg0
, unsigned int arg1
, float arg2
,
132 float arg3
, _Decimal32 arg4
, long double arg5
)
138 arg5_128 (int arg0
, unsigned int arg1
, float arg2
,
139 double arg3
, long double arg4
, _Decimal128 arg5
)
149 /* _Decimal32 variants. */
150 if (arg0_32 (0.0df
, -1, 2, 3.0f
, 4.0, 5.0l) != 0.0df
) FAILURE
151 if (arg1_32 (0, 1.0df
, 2, 3.0f
, 4.0, 5.0l) != 1.0df
) FAILURE
152 if (arg2_32 (0, -1, 2.0df
, 3.0f
, 4.0, 5.0l) != 2.0df
) FAILURE
153 if (arg3_32 (0, -1, 2.0f
, 3.0df
, 4.0, 5.0l) != 3.0df
) FAILURE
154 if (arg4_32 (0, -1, 2.0f
, 3.0, 4.0df
, 5.0l) != 4.0df
) FAILURE
155 if (arg5_32 (0, -1, 2.0f
, 3.0, 4.0l, 5.0df
) != 5.0df
) FAILURE
157 /* _Decimal64 variants. */
158 if (arg0_64 (0.0dd
, -1, 2, 3.0f
, 4.0, 5.0l) != 0.0dd
) FAILURE
159 if (arg1_64 (0, 1.0dd
, 2, 3.0f
, 4.0, 5.0l) != 1.0dd
) FAILURE
160 if (arg2_64 (0, -1, 2.0dd
, 3.0f
, 4.0, 5.0l) != 2.0dd
) FAILURE
161 if (arg3_64 (0, -1, 2.0f
, 3.0dd
, 4.0, 5.0l) != 3.0dd
) FAILURE
162 if (arg4_64 (0, -1, 2.0f
, 3.0, 4.0dd
, 5.0l) != 4.0dd
) FAILURE
163 if (arg5_64 (0, -1, 2.0f
, 3.0, 4.0l, 5.0dd
) != 5.0dd
) FAILURE
165 /* _Decimal128 variants. */
166 if (arg0_128 (0.0dl
, -1, 2, 3.0f
, 4.0, 5.0l) != 0.0dl
) FAILURE
167 if (arg1_128 (0, 1.0dl
, 2, 3.0f
, 4.0, 5.0l) != 1.0dl
) FAILURE
168 if (arg2_128 (0, -1, 2.0dl
, 3.0f
, 4.0, 5.0l) != 2.0dl
) FAILURE
169 if (arg3_128 (0, -1, 2.0f
, 3.0dl
, 4.0, 5.0l) != 3.0dl
) FAILURE
170 if (arg4_128 (0, -1, 2.0f
, 3.0, 4.0dl
, 5.0l) != 4.0dl
) FAILURE
171 if (arg5_128 (0, -1, 2.0f
, 3.0, 4.0l, 5.0dl
) != 5.0dl
) FAILURE