Statistics
| Branch: | Revision:

root / target-sparc / helper.h @ 9fdf0c29

History | View | Annotate | Download (4.7 kB)

1 a7812ae4 pbrook
#include "def-helper.h"
2 1a2fb1c0 blueswir1
3 1a2fb1c0 blueswir1
#ifndef TARGET_SPARC64
4 a7812ae4 pbrook
DEF_HELPER_0(rett, void)
5 a7812ae4 pbrook
DEF_HELPER_1(wrpsr, void, tl)
6 a7812ae4 pbrook
DEF_HELPER_0(rdpsr, tl)
7 1a2fb1c0 blueswir1
#else
8 1fae7b70 Igor V. Kovalenko
DEF_HELPER_1(wrpil, void, tl)
9 a7812ae4 pbrook
DEF_HELPER_1(wrpstate, void, tl)
10 a7812ae4 pbrook
DEF_HELPER_0(done, void)
11 a7812ae4 pbrook
DEF_HELPER_0(retry, void)
12 a7812ae4 pbrook
DEF_HELPER_0(flushw, void)
13 a7812ae4 pbrook
DEF_HELPER_0(saved, void)
14 a7812ae4 pbrook
DEF_HELPER_0(restored, void)
15 a7812ae4 pbrook
DEF_HELPER_0(rdccr, tl)
16 a7812ae4 pbrook
DEF_HELPER_1(wrccr, void, tl)
17 a7812ae4 pbrook
DEF_HELPER_0(rdcwp, tl)
18 a7812ae4 pbrook
DEF_HELPER_1(wrcwp, void, tl)
19 a7812ae4 pbrook
DEF_HELPER_2(array8, tl, tl, tl)
20 a7812ae4 pbrook
DEF_HELPER_2(alignaddr, tl, tl, tl)
21 a7812ae4 pbrook
DEF_HELPER_1(popc, tl, tl)
22 a7812ae4 pbrook
DEF_HELPER_3(ldda_asi, void, tl, int, int)
23 a7812ae4 pbrook
DEF_HELPER_4(ldf_asi, void, tl, int, int, int)
24 a7812ae4 pbrook
DEF_HELPER_4(stf_asi, void, tl, int, int, int)
25 a7812ae4 pbrook
DEF_HELPER_4(cas_asi, tl, tl, tl, tl, i32)
26 a7812ae4 pbrook
DEF_HELPER_4(casx_asi, tl, tl, tl, tl, i32)
27 a7812ae4 pbrook
DEF_HELPER_1(set_softint, void, i64)
28 a7812ae4 pbrook
DEF_HELPER_1(clear_softint, void, i64)
29 a7812ae4 pbrook
DEF_HELPER_1(write_softint, void, i64)
30 a7812ae4 pbrook
DEF_HELPER_2(tick_set_count, void, ptr, i64)
31 a7812ae4 pbrook
DEF_HELPER_1(tick_get_count, i64, ptr)
32 a7812ae4 pbrook
DEF_HELPER_2(tick_set_limit, void, ptr, i64)
33 c9e03d8f blueswir1
#endif
34 a7812ae4 pbrook
DEF_HELPER_2(check_align, void, tl, i32)
35 a7812ae4 pbrook
DEF_HELPER_0(debug, void)
36 a7812ae4 pbrook
DEF_HELPER_0(save, void)
37 a7812ae4 pbrook
DEF_HELPER_0(restore, void)
38 a7812ae4 pbrook
DEF_HELPER_1(flush, void, tl)
39 a7812ae4 pbrook
DEF_HELPER_2(udiv, tl, tl, tl)
40 0fcec41e Aurelien Jarno
DEF_HELPER_2(udiv_cc, tl, tl, tl)
41 a7812ae4 pbrook
DEF_HELPER_2(sdiv, tl, tl, tl)
42 0fcec41e Aurelien Jarno
DEF_HELPER_2(sdiv_cc, tl, tl, tl)
43 a7812ae4 pbrook
DEF_HELPER_2(stdf, void, tl, int)
44 a7812ae4 pbrook
DEF_HELPER_2(lddf, void, tl, int)
45 a7812ae4 pbrook
DEF_HELPER_2(ldqf, void, tl, int)
46 a7812ae4 pbrook
DEF_HELPER_2(stqf, void, tl, int)
47 c9e03d8f blueswir1
#if !defined(CONFIG_USER_ONLY) || defined(TARGET_SPARC64)
48 a7812ae4 pbrook
DEF_HELPER_4(ld_asi, i64, tl, int, int, int)
49 a7812ae4 pbrook
DEF_HELPER_4(st_asi, void, tl, i64, int, int)
50 1a2fb1c0 blueswir1
#endif
51 a7812ae4 pbrook
DEF_HELPER_1(ldfsr, void, i32)
52 a7812ae4 pbrook
DEF_HELPER_0(check_ieee_exceptions, void)
53 a7812ae4 pbrook
DEF_HELPER_0(clear_float_exceptions, void)
54 a7812ae4 pbrook
DEF_HELPER_1(fabss, f32, f32)
55 a7812ae4 pbrook
DEF_HELPER_1(fsqrts, f32, f32)
56 a7812ae4 pbrook
DEF_HELPER_0(fsqrtd, void)
57 a7812ae4 pbrook
DEF_HELPER_2(fcmps, void, f32, f32)
58 a7812ae4 pbrook
DEF_HELPER_0(fcmpd, void)
59 a7812ae4 pbrook
DEF_HELPER_2(fcmpes, void, f32, f32)
60 a7812ae4 pbrook
DEF_HELPER_0(fcmped, void)
61 a7812ae4 pbrook
DEF_HELPER_0(fsqrtq, void)
62 a7812ae4 pbrook
DEF_HELPER_0(fcmpq, void)
63 a7812ae4 pbrook
DEF_HELPER_0(fcmpeq, void)
64 7e8c2b6c blueswir1
#ifdef TARGET_SPARC64
65 a7812ae4 pbrook
DEF_HELPER_1(ldxfsr, void, i64)
66 a7812ae4 pbrook
DEF_HELPER_0(fabsd, void)
67 a7812ae4 pbrook
DEF_HELPER_2(fcmps_fcc1, void, f32, f32)
68 a7812ae4 pbrook
DEF_HELPER_2(fcmps_fcc2, void, f32, f32)
69 a7812ae4 pbrook
DEF_HELPER_2(fcmps_fcc3, void, f32, f32)
70 a7812ae4 pbrook
DEF_HELPER_0(fcmpd_fcc1, void)
71 a7812ae4 pbrook
DEF_HELPER_0(fcmpd_fcc2, void)
72 a7812ae4 pbrook
DEF_HELPER_0(fcmpd_fcc3, void)
73 a7812ae4 pbrook
DEF_HELPER_2(fcmpes_fcc1, void, f32, f32)
74 a7812ae4 pbrook
DEF_HELPER_2(fcmpes_fcc2, void, f32, f32)
75 a7812ae4 pbrook
DEF_HELPER_2(fcmpes_fcc3, void, f32, f32)
76 a7812ae4 pbrook
DEF_HELPER_0(fcmped_fcc1, void)
77 a7812ae4 pbrook
DEF_HELPER_0(fcmped_fcc2, void)
78 a7812ae4 pbrook
DEF_HELPER_0(fcmped_fcc3, void)
79 a7812ae4 pbrook
DEF_HELPER_0(fabsq, void)
80 a7812ae4 pbrook
DEF_HELPER_0(fcmpq_fcc1, void)
81 a7812ae4 pbrook
DEF_HELPER_0(fcmpq_fcc2, void)
82 a7812ae4 pbrook
DEF_HELPER_0(fcmpq_fcc3, void)
83 a7812ae4 pbrook
DEF_HELPER_0(fcmpeq_fcc1, void)
84 a7812ae4 pbrook
DEF_HELPER_0(fcmpeq_fcc2, void)
85 a7812ae4 pbrook
DEF_HELPER_0(fcmpeq_fcc3, void)
86 7e8c2b6c blueswir1
#endif
87 a7812ae4 pbrook
DEF_HELPER_1(raise_exception, void, int)
88 b04d9890 Fabien Chouteau
DEF_HELPER_0(shutdown, void)
89 a7812ae4 pbrook
#define F_HELPER_0_0(name) DEF_HELPER_0(f ## name, void)
90 714547bb blueswir1
#define F_HELPER_DQ_0_0(name)                   \
91 714547bb blueswir1
    F_HELPER_0_0(name ## d);                    \
92 714547bb blueswir1
    F_HELPER_0_0(name ## q)
93 714547bb blueswir1
94 714547bb blueswir1
F_HELPER_DQ_0_0(add);
95 714547bb blueswir1
F_HELPER_DQ_0_0(sub);
96 714547bb blueswir1
F_HELPER_DQ_0_0(mul);
97 714547bb blueswir1
F_HELPER_DQ_0_0(div);
98 44e7757c blueswir1
99 a7812ae4 pbrook
DEF_HELPER_2(fadds, f32, f32, f32)
100 a7812ae4 pbrook
DEF_HELPER_2(fsubs, f32, f32, f32)
101 a7812ae4 pbrook
DEF_HELPER_2(fmuls, f32, f32, f32)
102 a7812ae4 pbrook
DEF_HELPER_2(fdivs, f32, f32, f32)
103 44e7757c blueswir1
104 a7812ae4 pbrook
DEF_HELPER_2(fsmuld, void, f32, f32)
105 44e7757c blueswir1
F_HELPER_0_0(dmulq);
106 44e7757c blueswir1
107 a7812ae4 pbrook
DEF_HELPER_1(fnegs, f32, f32)
108 a7812ae4 pbrook
DEF_HELPER_1(fitod, void, s32)
109 a7812ae4 pbrook
DEF_HELPER_1(fitoq, void, s32)
110 714547bb blueswir1
111 a7812ae4 pbrook
DEF_HELPER_1(fitos, f32, s32)
112 714547bb blueswir1
113 44e7757c blueswir1
#ifdef TARGET_SPARC64
114 a7812ae4 pbrook
DEF_HELPER_0(fnegd, void)
115 a7812ae4 pbrook
DEF_HELPER_0(fnegq, void)
116 a7812ae4 pbrook
DEF_HELPER_0(fxtos, i32)
117 d84763bc blueswir1
F_HELPER_DQ_0_0(xto);
118 44e7757c blueswir1
#endif
119 a7812ae4 pbrook
DEF_HELPER_0(fdtos, f32)
120 a7812ae4 pbrook
DEF_HELPER_1(fstod, void, f32)
121 a7812ae4 pbrook
DEF_HELPER_0(fqtos, f32)
122 a7812ae4 pbrook
DEF_HELPER_1(fstoq, void, f32)
123 44e7757c blueswir1
F_HELPER_0_0(qtod);
124 44e7757c blueswir1
F_HELPER_0_0(dtoq);
125 a7812ae4 pbrook
DEF_HELPER_1(fstoi, s32, f32)
126 a7812ae4 pbrook
DEF_HELPER_0(fdtoi, s32)
127 a7812ae4 pbrook
DEF_HELPER_0(fqtoi, s32)
128 44e7757c blueswir1
#ifdef TARGET_SPARC64
129 a7812ae4 pbrook
DEF_HELPER_1(fstox, void, i32)
130 44e7757c blueswir1
F_HELPER_0_0(dtox);
131 44e7757c blueswir1
F_HELPER_0_0(qtox);
132 44e7757c blueswir1
F_HELPER_0_0(aligndata);
133 c9e03d8f blueswir1
134 44e7757c blueswir1
F_HELPER_0_0(pmerge);
135 44e7757c blueswir1
F_HELPER_0_0(mul8x16);
136 44e7757c blueswir1
F_HELPER_0_0(mul8x16al);
137 44e7757c blueswir1
F_HELPER_0_0(mul8x16au);
138 44e7757c blueswir1
F_HELPER_0_0(mul8sux16);
139 44e7757c blueswir1
F_HELPER_0_0(mul8ulx16);
140 44e7757c blueswir1
F_HELPER_0_0(muld8sux16);
141 44e7757c blueswir1
F_HELPER_0_0(muld8ulx16);
142 44e7757c blueswir1
F_HELPER_0_0(expand);
143 44e7757c blueswir1
#define VIS_HELPER(name)                                 \
144 44e7757c blueswir1
    F_HELPER_0_0(name##16);                              \
145 a7812ae4 pbrook
    DEF_HELPER_2(f ## name ## 16s, i32, i32, i32) \
146 44e7757c blueswir1
    F_HELPER_0_0(name##32);                              \
147 a7812ae4 pbrook
    DEF_HELPER_2(f ## name ## 32s, i32, i32, i32)
148 44e7757c blueswir1
149 44e7757c blueswir1
VIS_HELPER(padd);
150 44e7757c blueswir1
VIS_HELPER(psub);
151 44e7757c blueswir1
#define VIS_CMPHELPER(name)                              \
152 44e7757c blueswir1
    F_HELPER_0_0(name##16);                              \
153 44e7757c blueswir1
    F_HELPER_0_0(name##32)
154 44e7757c blueswir1
VIS_CMPHELPER(cmpgt);
155 44e7757c blueswir1
VIS_CMPHELPER(cmpeq);
156 44e7757c blueswir1
VIS_CMPHELPER(cmple);
157 44e7757c blueswir1
VIS_CMPHELPER(cmpne);
158 44e7757c blueswir1
#endif
159 44e7757c blueswir1
#undef F_HELPER_0_0
160 714547bb blueswir1
#undef F_HELPER_DQ_0_0
161 44e7757c blueswir1
#undef VIS_HELPER
162 44e7757c blueswir1
#undef VIS_CMPHELPER
163 8393617c Blue Swirl
DEF_HELPER_0(compute_psr, void);
164 70c48285 Richard Henderson
DEF_HELPER_0(compute_C_icc, i32);
165 a7812ae4 pbrook
166 a7812ae4 pbrook
#include "def-helper.h"