1 typedef unsigned int uint
;
2 typedef unsigned long ulong
;
4 static int uint_2_int(uint a
) { return (int)a
; }
5 static int long_2_int(long a
) { return (int)a
; }
6 static int ulong_2_int(ulong a
) { return (int)a
; }
7 static int vptr_2_int(void *a
) { return (int)a
; }
8 static int iptr_2_int(int *a
) { return (int)a
; }
9 static int float_2_int(float a
) { return (int)a
; }
10 static int double_2_int(double a
) { return (int)a
; }
11 static uint
int_2_uint(int a
) { return (uint
)a
; }
12 static uint
long_2_uint(long a
) { return (uint
)a
; }
13 static uint
ulong_2_uint(ulong a
) { return (uint
)a
; }
14 static uint
vptr_2_uint(void *a
) { return (uint
)a
; }
15 static uint
iptr_2_uint(int *a
) { return (uint
)a
; }
16 static uint
float_2_uint(float a
) { return (uint
)a
; }
17 static uint
double_2_uint(double a
) { return (uint
)a
; }
18 static long int_2_long(int a
) { return (long)a
; }
19 static long uint_2_long(uint a
) { return (long)a
; }
20 static long ulong_2_long(ulong a
) { return (long)a
; }
21 static long vptr_2_long(void *a
) { return (long)a
; }
22 static long iptr_2_long(int *a
) { return (long)a
; }
23 static long float_2_long(float a
) { return (long)a
; }
24 static long double_2_long(double a
) { return (long)a
; }
25 static ulong
int_2_ulong(int a
) { return (ulong
)a
; }
26 static ulong
uint_2_ulong(uint a
) { return (ulong
)a
; }
27 static ulong
long_2_ulong(long a
) { return (ulong
)a
; }
28 static ulong
vptr_2_ulong(void *a
) { return (ulong
)a
; }
29 static ulong
iptr_2_ulong(int *a
) { return (ulong
)a
; }
30 static ulong
float_2_ulong(float a
) { return (ulong
)a
; }
31 static ulong
double_2_ulong(double a
) { return (ulong
)a
; }
32 static void * int_2_vptr(int a
) { return (void *)a
; }
33 static void * uint_2_vptr(uint a
) { return (void *)a
; }
34 static void * long_2_vptr(long a
) { return (void *)a
; }
35 static void * ulong_2_vptr(ulong a
) { return (void *)a
; }
36 static void * iptr_2_vptr(int *a
) { return (void *)a
; }
37 static int * int_2_iptr(int a
) { return (int *)a
; }
38 static int * uint_2_iptr(uint a
) { return (int *)a
; }
39 static int * long_2_iptr(long a
) { return (int *)a
; }
40 static int * ulong_2_iptr(ulong a
) { return (int *)a
; }
41 static int * vptr_2_iptr(void *a
) { return (int *)a
; }
42 static float int_2_float(int a
) { return (float)a
; }
43 static float uint_2_float(uint a
) { return (float)a
; }
44 static float long_2_float(long a
) { return (float)a
; }
45 static float ulong_2_float(ulong a
) { return (float)a
; }
46 static float double_2_float(double a
) { return (float)a
; }
47 static double int_2_double(int a
) { return (double)a
; }
48 static double uint_2_double(uint a
) { return (double)a
; }
49 static double long_2_double(long a
) { return (double)a
; }
50 static double ulong_2_double(ulong a
) { return (double)a
; }
51 static double float_2_double(float a
) { return (double)a
; }
54 * check-name: cast-kinds
55 * check-command: test-linearize -m64 $file
67 scast.32 %r5 <- (64) %arg1
74 cast.32 %r8 <- (64) %arg1
81 cast.32 %r11 <- (64) %arg1
88 cast.32 %r14 <- (64) %arg1
101 cast.32 %r20 <- (64) %arg1
114 scast.32 %r26 <- (64) %arg1
121 cast.32 %r29 <- (64) %arg1
128 cast.32 %r32 <- (64) %arg1
135 cast.32 %r35 <- (64) %arg1
148 cast.32 %r41 <- (64) %arg1
155 scast.64 %r44 <- (32) %arg1
162 cast.64 %r47 <- (32) %arg1
175 cast.64 %r53 <- (64) %arg1
182 cast.64 %r56 <- (64) %arg1
189 cast.64 %r59 <- (32) %arg1
202 scast.64 %r65 <- (32) %arg1
209 cast.64 %r68 <- (32) %arg1
222 cast.64 %r74 <- (64) %arg1
229 cast.64 %r77 <- (64) %arg1
236 cast.64 %r80 <- (32) %arg1
249 scast.64 %r86 <- (32) %arg1
256 cast.64 %r89 <- (32) %arg1
263 scast.64 %r92 <- (64) %arg1
270 cast.64 %r95 <- (64) %arg1
277 cast.64 %r98 <- (64) %arg1
284 ptrcast.64 %r101 <- (32) %arg1
291 ptrcast.64 %r104 <- (32) %arg1
298 ptrcast.64 %r107 <- (64) %arg1
305 ptrcast.64 %r110 <- (64) %arg1
312 ptrcast.64 %r113 <- (64) %arg1
319 fpcast.32 %r116 <- (32) %arg1
326 fpcast.32 %r119 <- (32) %arg1
333 fpcast.32 %r122 <- (64) %arg1
340 fpcast.32 %r125 <- (64) %arg1
347 fpcast.32 %r128 <- (64) %arg1
354 fpcast.64 %r131 <- (32) %arg1
361 fpcast.64 %r134 <- (32) %arg1
368 fpcast.64 %r137 <- (64) %arg1
375 fpcast.64 %r140 <- (64) %arg1
382 fpcast.64 %r143 <- (32) %arg1