Debian Codegraph @

gcc/testsuite/gcc.target/csky/fpuv3/fpv3_fxtof.c

raw
1 /* { dg-do compile } */
2 /* { dg-skip-if "test is specific to ck860f" { csky-*-* } { "*" } { "-mcpu=ck860*f* -mfloat-abi=hard" "-mcpu=ck860*f* -mhard-float" } } */
3 /* { dg-options "-O1" } */
4
5 //__fp16
6 //fixed32_to_float16 (int i)
7 //{
8 // return ((__fp16) i / (1 << 15));
9 //}
10 //
11 //__fp16
12 //fixedu32_to_float16 (unsigned int i)
13 //{
14 // return ((__fp16) i / (1 << 15));
15 //}
16 //
17 //float
18 //fixed32_to_float32 (int i)
19 //{
20 // return ((float) i / (1 << 30));
21 //}
22 //
23 //
24 //float
25 //fixedu32_to_float32 (unsigned int i)
26 //{
27 // return ((float) i / (1 << 30));
28 //}
29 //
30 //double
31 //fixed32_to_float64 (int i)
32 //{
33 // return ((double) i / (1 << 30));
34 //}
35 //
36 //double
37 //fixedu32_to_float64 (unsigned int i)
38 //{
39 // return ((double) i / (1 << 30));
40 //}
41 //
42 //__fp16
43 //fixed16_to_float16 (short i)
44 //{
45 // return ((__fp16) i / (1 << 15));
46 //}
47 //
48 //__fp16
49 //fixedu16_to_float16 (unsigned short i)
50 //{
51 // return ((__fp16) i / (1 << 15));
52 //}
53 //
54 //float
55 //fixed16_to_float32 (short i)
56 //{
57 // return ((float) i / (1 << 16));
58 //}
59 //
60 //float
61 //fixedu16_to_float32 (unsigned short i)
62 //{
63 // return ((float) i / (1 << 16));
64 //}
65 //
66 //double
67 //fixed16_to_float64 (short i)
68 //{
69 // return ((double) i / (1 << 16));
70 //}
71 //
72 //double
73 //fixedu16_to_float64 (unsigned short i)
74 //{
75 // return ((double) i / (1 << 16));
76 //}