1f08c3bdfSopenharmony_citypedef unsigned int uint;
2f08c3bdfSopenharmony_citypedef unsigned long ulong;
3f08c3bdfSopenharmony_ci
4f08c3bdfSopenharmony_cistatic int uint_2_int(void) { return (int)123U; }
5f08c3bdfSopenharmony_cistatic int long_2_int(void) { return (int)123L; }
6f08c3bdfSopenharmony_cistatic int ulong_2_int(void) { return (int)123UL; }
7f08c3bdfSopenharmony_cistatic int vptr_2_int(void) { return (int)((void*)123); }
8f08c3bdfSopenharmony_cistatic int iptr_2_int(void) { return (int)((int*)128); }
9f08c3bdfSopenharmony_cistatic int float_2_int(void) { return (int)1.123F; }
10f08c3bdfSopenharmony_cistatic int double_2_int(void) { return (int)1.123L; }
11f08c3bdfSopenharmony_cistatic uint int_2_uint(void) { return (uint)123; }
12f08c3bdfSopenharmony_cistatic uint long_2_uint(void) { return (uint)123L; }
13f08c3bdfSopenharmony_cistatic uint ulong_2_uint(void) { return (uint)123UL; }
14f08c3bdfSopenharmony_cistatic uint vptr_2_uint(void) { return (uint)((void*)123); }
15f08c3bdfSopenharmony_cistatic uint iptr_2_uint(void) { return (uint)((int*)128); }
16f08c3bdfSopenharmony_cistatic uint float_2_uint(void) { return (uint)1.123F; }
17f08c3bdfSopenharmony_cistatic uint double_2_uint(void) { return (uint)1.123L; }
18f08c3bdfSopenharmony_cistatic long int_2_long(void) { return (long)123; }
19f08c3bdfSopenharmony_cistatic long uint_2_long(void) { return (long)123U; }
20f08c3bdfSopenharmony_cistatic long ulong_2_long(void) { return (long)123UL; }
21f08c3bdfSopenharmony_cistatic long vptr_2_long(void) { return (long)((void*)123); }
22f08c3bdfSopenharmony_cistatic long iptr_2_long(void) { return (long)((int*)128); }
23f08c3bdfSopenharmony_cistatic long float_2_long(void) { return (long)1.123F; }
24f08c3bdfSopenharmony_cistatic long double_2_long(void) { return (long)1.123L; }
25f08c3bdfSopenharmony_cistatic ulong int_2_ulong(void) { return (ulong)123; }
26f08c3bdfSopenharmony_cistatic ulong uint_2_ulong(void) { return (ulong)123U; }
27f08c3bdfSopenharmony_cistatic ulong long_2_ulong(void) { return (ulong)123L; }
28f08c3bdfSopenharmony_cistatic ulong vptr_2_ulong(void) { return (ulong)((void*)123); }
29f08c3bdfSopenharmony_cistatic ulong iptr_2_ulong(void) { return (ulong)((int*)128); }
30f08c3bdfSopenharmony_cistatic ulong float_2_ulong(void) { return (ulong)1.123F; }
31f08c3bdfSopenharmony_cistatic ulong double_2_ulong(void) { return (ulong)1.123L; }
32f08c3bdfSopenharmony_cistatic void * int_2_vptr(void) { return (void *)123; }
33f08c3bdfSopenharmony_cistatic void * uint_2_vptr(void) { return (void *)123U; }
34f08c3bdfSopenharmony_cistatic void * long_2_vptr(void) { return (void *)123L; }
35f08c3bdfSopenharmony_cistatic void * ulong_2_vptr(void) { return (void *)123UL; }
36f08c3bdfSopenharmony_cistatic void * iptr_2_vptr(void) { return (void *)((int*)128); }
37f08c3bdfSopenharmony_cistatic int * int_2_iptr(void) { return (int *)123; }
38f08c3bdfSopenharmony_cistatic int * uint_2_iptr(void) { return (int *)123U; }
39f08c3bdfSopenharmony_cistatic int * long_2_iptr(void) { return (int *)123L; }
40f08c3bdfSopenharmony_cistatic int * ulong_2_iptr(void) { return (int *)123UL; }
41f08c3bdfSopenharmony_cistatic int * vptr_2_iptr(void) { return (int *)((void*)123); }
42f08c3bdfSopenharmony_cistatic float int_2_float(void) { return (float)123; }
43f08c3bdfSopenharmony_cistatic float uint_2_float(void) { return (float)123U; }
44f08c3bdfSopenharmony_cistatic float long_2_float(void) { return (float)123L; }
45f08c3bdfSopenharmony_cistatic float ulong_2_float(void) { return (float)123UL; }
46f08c3bdfSopenharmony_cistatic float double_2_float(void) { return (float)1.123L; }
47f08c3bdfSopenharmony_cistatic double int_2_double(void) { return (double)123; }
48f08c3bdfSopenharmony_cistatic double uint_2_double(void) { return (double)123U; }
49f08c3bdfSopenharmony_cistatic double long_2_double(void) { return (double)123L; }
50f08c3bdfSopenharmony_cistatic double ulong_2_double(void) { return (double)123UL; }
51f08c3bdfSopenharmony_cistatic double float_2_double(void) { return (double)1.123F; }
52f08c3bdfSopenharmony_ci
53f08c3bdfSopenharmony_ci/*
54f08c3bdfSopenharmony_ci * check-name: cast-constants.c
55f08c3bdfSopenharmony_ci * check-command: test-linearize -m64 $file
56f08c3bdfSopenharmony_ci * check-assert: sizeof(void *) == 8 && sizeof(long) == 8 && sizeof(double) == 8
57f08c3bdfSopenharmony_ci *
58f08c3bdfSopenharmony_ci * check-output-start
59f08c3bdfSopenharmony_ciuint_2_int:
60f08c3bdfSopenharmony_ci.L0:
61f08c3bdfSopenharmony_ci	<entry-point>
62f08c3bdfSopenharmony_ci	ret.32      $123
63f08c3bdfSopenharmony_ci
64f08c3bdfSopenharmony_ci
65f08c3bdfSopenharmony_cilong_2_int:
66f08c3bdfSopenharmony_ci.L2:
67f08c3bdfSopenharmony_ci	<entry-point>
68f08c3bdfSopenharmony_ci	ret.32      $123
69f08c3bdfSopenharmony_ci
70f08c3bdfSopenharmony_ci
71f08c3bdfSopenharmony_ciulong_2_int:
72f08c3bdfSopenharmony_ci.L4:
73f08c3bdfSopenharmony_ci	<entry-point>
74f08c3bdfSopenharmony_ci	ret.32      $123
75f08c3bdfSopenharmony_ci
76f08c3bdfSopenharmony_ci
77f08c3bdfSopenharmony_civptr_2_int:
78f08c3bdfSopenharmony_ci.L6:
79f08c3bdfSopenharmony_ci	<entry-point>
80f08c3bdfSopenharmony_ci	ret.32      $123
81f08c3bdfSopenharmony_ci
82f08c3bdfSopenharmony_ci
83f08c3bdfSopenharmony_ciiptr_2_int:
84f08c3bdfSopenharmony_ci.L8:
85f08c3bdfSopenharmony_ci	<entry-point>
86f08c3bdfSopenharmony_ci	ret.32      $128
87f08c3bdfSopenharmony_ci
88f08c3bdfSopenharmony_ci
89f08c3bdfSopenharmony_cifloat_2_int:
90f08c3bdfSopenharmony_ci.L10:
91f08c3bdfSopenharmony_ci	<entry-point>
92f08c3bdfSopenharmony_ci	ret.32      $1
93f08c3bdfSopenharmony_ci
94f08c3bdfSopenharmony_ci
95f08c3bdfSopenharmony_cidouble_2_int:
96f08c3bdfSopenharmony_ci.L12:
97f08c3bdfSopenharmony_ci	<entry-point>
98f08c3bdfSopenharmony_ci	ret.32      $1
99f08c3bdfSopenharmony_ci
100f08c3bdfSopenharmony_ci
101f08c3bdfSopenharmony_ciint_2_uint:
102f08c3bdfSopenharmony_ci.L14:
103f08c3bdfSopenharmony_ci	<entry-point>
104f08c3bdfSopenharmony_ci	ret.32      $123
105f08c3bdfSopenharmony_ci
106f08c3bdfSopenharmony_ci
107f08c3bdfSopenharmony_cilong_2_uint:
108f08c3bdfSopenharmony_ci.L16:
109f08c3bdfSopenharmony_ci	<entry-point>
110f08c3bdfSopenharmony_ci	ret.32      $123
111f08c3bdfSopenharmony_ci
112f08c3bdfSopenharmony_ci
113f08c3bdfSopenharmony_ciulong_2_uint:
114f08c3bdfSopenharmony_ci.L18:
115f08c3bdfSopenharmony_ci	<entry-point>
116f08c3bdfSopenharmony_ci	ret.32      $123
117f08c3bdfSopenharmony_ci
118f08c3bdfSopenharmony_ci
119f08c3bdfSopenharmony_civptr_2_uint:
120f08c3bdfSopenharmony_ci.L20:
121f08c3bdfSopenharmony_ci	<entry-point>
122f08c3bdfSopenharmony_ci	ret.32      $123
123f08c3bdfSopenharmony_ci
124f08c3bdfSopenharmony_ci
125f08c3bdfSopenharmony_ciiptr_2_uint:
126f08c3bdfSopenharmony_ci.L22:
127f08c3bdfSopenharmony_ci	<entry-point>
128f08c3bdfSopenharmony_ci	ret.32      $128
129f08c3bdfSopenharmony_ci
130f08c3bdfSopenharmony_ci
131f08c3bdfSopenharmony_cifloat_2_uint:
132f08c3bdfSopenharmony_ci.L24:
133f08c3bdfSopenharmony_ci	<entry-point>
134f08c3bdfSopenharmony_ci	ret.32      $1
135f08c3bdfSopenharmony_ci
136f08c3bdfSopenharmony_ci
137f08c3bdfSopenharmony_cidouble_2_uint:
138f08c3bdfSopenharmony_ci.L26:
139f08c3bdfSopenharmony_ci	<entry-point>
140f08c3bdfSopenharmony_ci	ret.32      $1
141f08c3bdfSopenharmony_ci
142f08c3bdfSopenharmony_ci
143f08c3bdfSopenharmony_ciint_2_long:
144f08c3bdfSopenharmony_ci.L28:
145f08c3bdfSopenharmony_ci	<entry-point>
146f08c3bdfSopenharmony_ci	ret.64      $123
147f08c3bdfSopenharmony_ci
148f08c3bdfSopenharmony_ci
149f08c3bdfSopenharmony_ciuint_2_long:
150f08c3bdfSopenharmony_ci.L30:
151f08c3bdfSopenharmony_ci	<entry-point>
152f08c3bdfSopenharmony_ci	ret.64      $123
153f08c3bdfSopenharmony_ci
154f08c3bdfSopenharmony_ci
155f08c3bdfSopenharmony_ciulong_2_long:
156f08c3bdfSopenharmony_ci.L32:
157f08c3bdfSopenharmony_ci	<entry-point>
158f08c3bdfSopenharmony_ci	ret.64      $123
159f08c3bdfSopenharmony_ci
160f08c3bdfSopenharmony_ci
161f08c3bdfSopenharmony_civptr_2_long:
162f08c3bdfSopenharmony_ci.L34:
163f08c3bdfSopenharmony_ci	<entry-point>
164f08c3bdfSopenharmony_ci	ret.64      $123
165f08c3bdfSopenharmony_ci
166f08c3bdfSopenharmony_ci
167f08c3bdfSopenharmony_ciiptr_2_long:
168f08c3bdfSopenharmony_ci.L36:
169f08c3bdfSopenharmony_ci	<entry-point>
170f08c3bdfSopenharmony_ci	ret.64      $128
171f08c3bdfSopenharmony_ci
172f08c3bdfSopenharmony_ci
173f08c3bdfSopenharmony_cifloat_2_long:
174f08c3bdfSopenharmony_ci.L38:
175f08c3bdfSopenharmony_ci	<entry-point>
176f08c3bdfSopenharmony_ci	ret.64      $1
177f08c3bdfSopenharmony_ci
178f08c3bdfSopenharmony_ci
179f08c3bdfSopenharmony_cidouble_2_long:
180f08c3bdfSopenharmony_ci.L40:
181f08c3bdfSopenharmony_ci	<entry-point>
182f08c3bdfSopenharmony_ci	ret.64      $1
183f08c3bdfSopenharmony_ci
184f08c3bdfSopenharmony_ci
185f08c3bdfSopenharmony_ciint_2_ulong:
186f08c3bdfSopenharmony_ci.L42:
187f08c3bdfSopenharmony_ci	<entry-point>
188f08c3bdfSopenharmony_ci	ret.64      $123
189f08c3bdfSopenharmony_ci
190f08c3bdfSopenharmony_ci
191f08c3bdfSopenharmony_ciuint_2_ulong:
192f08c3bdfSopenharmony_ci.L44:
193f08c3bdfSopenharmony_ci	<entry-point>
194f08c3bdfSopenharmony_ci	ret.64      $123
195f08c3bdfSopenharmony_ci
196f08c3bdfSopenharmony_ci
197f08c3bdfSopenharmony_cilong_2_ulong:
198f08c3bdfSopenharmony_ci.L46:
199f08c3bdfSopenharmony_ci	<entry-point>
200f08c3bdfSopenharmony_ci	ret.64      $123
201f08c3bdfSopenharmony_ci
202f08c3bdfSopenharmony_ci
203f08c3bdfSopenharmony_civptr_2_ulong:
204f08c3bdfSopenharmony_ci.L48:
205f08c3bdfSopenharmony_ci	<entry-point>
206f08c3bdfSopenharmony_ci	ret.64      $123
207f08c3bdfSopenharmony_ci
208f08c3bdfSopenharmony_ci
209f08c3bdfSopenharmony_ciiptr_2_ulong:
210f08c3bdfSopenharmony_ci.L50:
211f08c3bdfSopenharmony_ci	<entry-point>
212f08c3bdfSopenharmony_ci	ret.64      $128
213f08c3bdfSopenharmony_ci
214f08c3bdfSopenharmony_ci
215f08c3bdfSopenharmony_cifloat_2_ulong:
216f08c3bdfSopenharmony_ci.L52:
217f08c3bdfSopenharmony_ci	<entry-point>
218f08c3bdfSopenharmony_ci	ret.64      $1
219f08c3bdfSopenharmony_ci
220f08c3bdfSopenharmony_ci
221f08c3bdfSopenharmony_cidouble_2_ulong:
222f08c3bdfSopenharmony_ci.L54:
223f08c3bdfSopenharmony_ci	<entry-point>
224f08c3bdfSopenharmony_ci	ret.64      $1
225f08c3bdfSopenharmony_ci
226f08c3bdfSopenharmony_ci
227f08c3bdfSopenharmony_ciint_2_vptr:
228f08c3bdfSopenharmony_ci.L56:
229f08c3bdfSopenharmony_ci	<entry-point>
230f08c3bdfSopenharmony_ci	ret.64      $123
231f08c3bdfSopenharmony_ci
232f08c3bdfSopenharmony_ci
233f08c3bdfSopenharmony_ciuint_2_vptr:
234f08c3bdfSopenharmony_ci.L58:
235f08c3bdfSopenharmony_ci	<entry-point>
236f08c3bdfSopenharmony_ci	ret.64      $123
237f08c3bdfSopenharmony_ci
238f08c3bdfSopenharmony_ci
239f08c3bdfSopenharmony_cilong_2_vptr:
240f08c3bdfSopenharmony_ci.L60:
241f08c3bdfSopenharmony_ci	<entry-point>
242f08c3bdfSopenharmony_ci	ret.64      $123
243f08c3bdfSopenharmony_ci
244f08c3bdfSopenharmony_ci
245f08c3bdfSopenharmony_ciulong_2_vptr:
246f08c3bdfSopenharmony_ci.L62:
247f08c3bdfSopenharmony_ci	<entry-point>
248f08c3bdfSopenharmony_ci	ret.64      $123
249f08c3bdfSopenharmony_ci
250f08c3bdfSopenharmony_ci
251f08c3bdfSopenharmony_ciiptr_2_vptr:
252f08c3bdfSopenharmony_ci.L64:
253f08c3bdfSopenharmony_ci	<entry-point>
254f08c3bdfSopenharmony_ci	ret.64      $128
255f08c3bdfSopenharmony_ci
256f08c3bdfSopenharmony_ci
257f08c3bdfSopenharmony_ciint_2_iptr:
258f08c3bdfSopenharmony_ci.L66:
259f08c3bdfSopenharmony_ci	<entry-point>
260f08c3bdfSopenharmony_ci	ret.64      $123
261f08c3bdfSopenharmony_ci
262f08c3bdfSopenharmony_ci
263f08c3bdfSopenharmony_ciuint_2_iptr:
264f08c3bdfSopenharmony_ci.L68:
265f08c3bdfSopenharmony_ci	<entry-point>
266f08c3bdfSopenharmony_ci	ret.64      $123
267f08c3bdfSopenharmony_ci
268f08c3bdfSopenharmony_ci
269f08c3bdfSopenharmony_cilong_2_iptr:
270f08c3bdfSopenharmony_ci.L70:
271f08c3bdfSopenharmony_ci	<entry-point>
272f08c3bdfSopenharmony_ci	ret.64      $123
273f08c3bdfSopenharmony_ci
274f08c3bdfSopenharmony_ci
275f08c3bdfSopenharmony_ciulong_2_iptr:
276f08c3bdfSopenharmony_ci.L72:
277f08c3bdfSopenharmony_ci	<entry-point>
278f08c3bdfSopenharmony_ci	ret.64      $123
279f08c3bdfSopenharmony_ci
280f08c3bdfSopenharmony_ci
281f08c3bdfSopenharmony_civptr_2_iptr:
282f08c3bdfSopenharmony_ci.L74:
283f08c3bdfSopenharmony_ci	<entry-point>
284f08c3bdfSopenharmony_ci	ret.64      $123
285f08c3bdfSopenharmony_ci
286f08c3bdfSopenharmony_ci
287f08c3bdfSopenharmony_ciint_2_float:
288f08c3bdfSopenharmony_ci.L76:
289f08c3bdfSopenharmony_ci	<entry-point>
290f08c3bdfSopenharmony_ci	setfval.32  %r39 <- 1.230000e+02
291f08c3bdfSopenharmony_ci	ret.32      %r39
292f08c3bdfSopenharmony_ci
293f08c3bdfSopenharmony_ci
294f08c3bdfSopenharmony_ciuint_2_float:
295f08c3bdfSopenharmony_ci.L78:
296f08c3bdfSopenharmony_ci	<entry-point>
297f08c3bdfSopenharmony_ci	setfval.32  %r41 <- 1.230000e+02
298f08c3bdfSopenharmony_ci	ret.32      %r41
299f08c3bdfSopenharmony_ci
300f08c3bdfSopenharmony_ci
301f08c3bdfSopenharmony_cilong_2_float:
302f08c3bdfSopenharmony_ci.L80:
303f08c3bdfSopenharmony_ci	<entry-point>
304f08c3bdfSopenharmony_ci	setfval.32  %r43 <- 1.230000e+02
305f08c3bdfSopenharmony_ci	ret.32      %r43
306f08c3bdfSopenharmony_ci
307f08c3bdfSopenharmony_ci
308f08c3bdfSopenharmony_ciulong_2_float:
309f08c3bdfSopenharmony_ci.L82:
310f08c3bdfSopenharmony_ci	<entry-point>
311f08c3bdfSopenharmony_ci	setfval.32  %r45 <- 1.230000e+02
312f08c3bdfSopenharmony_ci	ret.32      %r45
313f08c3bdfSopenharmony_ci
314f08c3bdfSopenharmony_ci
315f08c3bdfSopenharmony_cidouble_2_float:
316f08c3bdfSopenharmony_ci.L84:
317f08c3bdfSopenharmony_ci	<entry-point>
318f08c3bdfSopenharmony_ci	setfval.32  %r47 <- 1.123000e+00
319f08c3bdfSopenharmony_ci	ret.32      %r47
320f08c3bdfSopenharmony_ci
321f08c3bdfSopenharmony_ci
322f08c3bdfSopenharmony_ciint_2_double:
323f08c3bdfSopenharmony_ci.L86:
324f08c3bdfSopenharmony_ci	<entry-point>
325f08c3bdfSopenharmony_ci	setfval.64  %r49 <- 1.230000e+02
326f08c3bdfSopenharmony_ci	ret.64      %r49
327f08c3bdfSopenharmony_ci
328f08c3bdfSopenharmony_ci
329f08c3bdfSopenharmony_ciuint_2_double:
330f08c3bdfSopenharmony_ci.L88:
331f08c3bdfSopenharmony_ci	<entry-point>
332f08c3bdfSopenharmony_ci	setfval.64  %r51 <- 1.230000e+02
333f08c3bdfSopenharmony_ci	ret.64      %r51
334f08c3bdfSopenharmony_ci
335f08c3bdfSopenharmony_ci
336f08c3bdfSopenharmony_cilong_2_double:
337f08c3bdfSopenharmony_ci.L90:
338f08c3bdfSopenharmony_ci	<entry-point>
339f08c3bdfSopenharmony_ci	setfval.64  %r53 <- 1.230000e+02
340f08c3bdfSopenharmony_ci	ret.64      %r53
341f08c3bdfSopenharmony_ci
342f08c3bdfSopenharmony_ci
343f08c3bdfSopenharmony_ciulong_2_double:
344f08c3bdfSopenharmony_ci.L92:
345f08c3bdfSopenharmony_ci	<entry-point>
346f08c3bdfSopenharmony_ci	setfval.64  %r55 <- 1.230000e+02
347f08c3bdfSopenharmony_ci	ret.64      %r55
348f08c3bdfSopenharmony_ci
349f08c3bdfSopenharmony_ci
350f08c3bdfSopenharmony_cifloat_2_double:
351f08c3bdfSopenharmony_ci.L94:
352f08c3bdfSopenharmony_ci	<entry-point>
353f08c3bdfSopenharmony_ci	setfval.64  %r57 <- 1.123000e+00
354f08c3bdfSopenharmony_ci	ret.64      %r57
355f08c3bdfSopenharmony_ci
356f08c3bdfSopenharmony_ci
357f08c3bdfSopenharmony_ci * check-output-end
358f08c3bdfSopenharmony_ci */
359