1 #include "def-helper.h"
4 DEF_HELPER_0(rett
, void)
5 DEF_HELPER_1(wrpsr
, void, tl
)
6 DEF_HELPER_0(rdpsr
, tl
)
8 DEF_HELPER_1(wrpil
, void, tl
)
9 DEF_HELPER_1(wrpstate
, void, tl
)
10 DEF_HELPER_0(done
, void)
11 DEF_HELPER_0(retry
, void)
12 DEF_HELPER_0(flushw
, void)
13 DEF_HELPER_0(saved
, void)
14 DEF_HELPER_0(restored
, void)
15 DEF_HELPER_0(rdccr
, tl
)
16 DEF_HELPER_1(wrccr
, void, tl
)
17 DEF_HELPER_0(rdcwp
, tl
)
18 DEF_HELPER_1(wrcwp
, void, tl
)
19 DEF_HELPER_3(array8
, tl
, env
, tl
, tl
)
20 DEF_HELPER_3(alignaddr
, tl
, env
, tl
, tl
)
21 DEF_HELPER_1(popc
, tl
, tl
)
22 DEF_HELPER_3(ldda_asi
, void, tl
, int, int)
23 DEF_HELPER_4(ldf_asi
, void, tl
, int, int, int)
24 DEF_HELPER_4(stf_asi
, void, tl
, int, int, int)
25 DEF_HELPER_4(cas_asi
, tl
, tl
, tl
, tl
, i32
)
26 DEF_HELPER_4(casx_asi
, tl
, tl
, tl
, tl
, i32
)
27 DEF_HELPER_1(set_softint
, void, i64
)
28 DEF_HELPER_1(clear_softint
, void, i64
)
29 DEF_HELPER_1(write_softint
, void, i64
)
30 DEF_HELPER_2(tick_set_count
, void, ptr
, i64
)
31 DEF_HELPER_1(tick_get_count
, i64
, ptr
)
32 DEF_HELPER_2(tick_set_limit
, void, ptr
, i64
)
34 DEF_HELPER_2(check_align
, void, tl
, i32
)
35 DEF_HELPER_1(debug
, void, env
)
36 DEF_HELPER_0(save
, void)
37 DEF_HELPER_0(restore
, void)
38 DEF_HELPER_2(udiv
, tl
, tl
, tl
)
39 DEF_HELPER_2(udiv_cc
, tl
, tl
, tl
)
40 DEF_HELPER_2(sdiv
, tl
, tl
, tl
)
41 DEF_HELPER_2(sdiv_cc
, tl
, tl
, tl
)
42 DEF_HELPER_2(stdf
, void, tl
, int)
43 DEF_HELPER_2(lddf
, void, tl
, int)
44 DEF_HELPER_2(ldqf
, void, tl
, int)
45 DEF_HELPER_2(stqf
, void, tl
, int)
46 #if !defined(CONFIG_USER_ONLY) || defined(TARGET_SPARC64)
47 DEF_HELPER_4(ld_asi
, i64
, tl
, int, int, int)
48 DEF_HELPER_4(st_asi
, void, tl
, i64
, int, int)
50 DEF_HELPER_2(ldfsr
, void, env
, i32
)
51 DEF_HELPER_1(check_ieee_exceptions
, void, env
)
52 DEF_HELPER_1(clear_float_exceptions
, void, env
)
53 DEF_HELPER_1(fabss
, f32
, f32
)
54 DEF_HELPER_2(fsqrts
, f32
, env
, f32
)
55 DEF_HELPER_1(fsqrtd
, void, env
)
56 DEF_HELPER_3(fcmps
, void, env
, f32
, f32
)
57 DEF_HELPER_1(fcmpd
, void, env
)
58 DEF_HELPER_3(fcmpes
, void, env
, f32
, f32
)
59 DEF_HELPER_1(fcmped
, void, env
)
60 DEF_HELPER_1(fsqrtq
, void, env
)
61 DEF_HELPER_1(fcmpq
, void, env
)
62 DEF_HELPER_1(fcmpeq
, void, env
)
64 DEF_HELPER_2(ldxfsr
, void, env
, i64
)
65 DEF_HELPER_1(fabsd
, void, env
)
66 DEF_HELPER_3(fcmps_fcc1
, void, env
, f32
, f32
)
67 DEF_HELPER_3(fcmps_fcc2
, void, env
, f32
, f32
)
68 DEF_HELPER_3(fcmps_fcc3
, void, env
, f32
, f32
)
69 DEF_HELPER_1(fcmpd_fcc1
, void, env
)
70 DEF_HELPER_1(fcmpd_fcc2
, void, env
)
71 DEF_HELPER_1(fcmpd_fcc3
, void, env
)
72 DEF_HELPER_3(fcmpes_fcc1
, void, env
, f32
, f32
)
73 DEF_HELPER_3(fcmpes_fcc2
, void, env
, f32
, f32
)
74 DEF_HELPER_3(fcmpes_fcc3
, void, env
, f32
, f32
)
75 DEF_HELPER_1(fcmped_fcc1
, void, env
)
76 DEF_HELPER_1(fcmped_fcc2
, void, env
)
77 DEF_HELPER_1(fcmped_fcc3
, void, env
)
78 DEF_HELPER_1(fabsq
, void, env
)
79 DEF_HELPER_1(fcmpq_fcc1
, void, env
)
80 DEF_HELPER_1(fcmpq_fcc2
, void, env
)
81 DEF_HELPER_1(fcmpq_fcc3
, void, env
)
82 DEF_HELPER_1(fcmpeq_fcc1
, void, env
)
83 DEF_HELPER_1(fcmpeq_fcc2
, void, env
)
84 DEF_HELPER_1(fcmpeq_fcc3
, void, env
)
86 DEF_HELPER_2(raise_exception
, void, env
, int)
87 DEF_HELPER_0(shutdown
, void)
88 #define F_HELPER_0_1(name) DEF_HELPER_1(f ## name, void, env)
89 #define F_HELPER_DQ_0_1(name) \
90 F_HELPER_0_1(name ## d); \
91 F_HELPER_0_1(name ## q)
98 DEF_HELPER_3(fadds
, f32
, env
, f32
, f32
)
99 DEF_HELPER_3(fsubs
, f32
, env
, f32
, f32
)
100 DEF_HELPER_3(fmuls
, f32
, env
, f32
, f32
)
101 DEF_HELPER_3(fdivs
, f32
, env
, f32
, f32
)
103 DEF_HELPER_3(fsmuld
, void, env
, f32
, f32
)
106 DEF_HELPER_1(fnegs
, f32
, f32
)
107 DEF_HELPER_2(fitod
, void, env
, s32
)
108 DEF_HELPER_2(fitoq
, void, env
, s32
)
110 DEF_HELPER_2(fitos
, f32
, env
, s32
)
112 #ifdef TARGET_SPARC64
113 DEF_HELPER_1(fnegd
, void, env
)
114 DEF_HELPER_1(fnegq
, void, env
)
115 DEF_HELPER_1(fxtos
, i32
, env
)
116 F_HELPER_DQ_0_1(xto
);
118 DEF_HELPER_1(fdtos
, f32
, env
)
119 DEF_HELPER_2(fstod
, void, env
, f32
)
120 DEF_HELPER_1(fqtos
, f32
, env
)
121 DEF_HELPER_2(fstoq
, void, env
, f32
)
124 DEF_HELPER_2(fstoi
, s32
, env
, f32
)
125 DEF_HELPER_1(fdtoi
, s32
, env
)
126 DEF_HELPER_1(fqtoi
, s32
, env
)
127 #ifdef TARGET_SPARC64
128 DEF_HELPER_2(fstox
, void, env
, i32
)
131 F_HELPER_0_1(aligndata
);
133 F_HELPER_0_1(pmerge
);
134 F_HELPER_0_1(mul8x16
);
135 F_HELPER_0_1(mul8x16al
);
136 F_HELPER_0_1(mul8x16au
);
137 F_HELPER_0_1(mul8sux16
);
138 F_HELPER_0_1(mul8ulx16
);
139 F_HELPER_0_1(muld8sux16
);
140 F_HELPER_0_1(muld8ulx16
);
141 F_HELPER_0_1(expand
);
142 #define VIS_HELPER(name) \
143 F_HELPER_0_1(name##16); \
144 DEF_HELPER_3(f ## name ## 16s, i32, env, i32, i32) \
145 F_HELPER_0_1(name##32); \
146 DEF_HELPER_3(f ## name ## 32s, i32, env, i32, i32)
150 #define VIS_CMPHELPER(name) \
151 DEF_HELPER_1(f##name##16, i64, env); \
152 DEF_HELPER_1(f##name##32, i64, env)
153 VIS_CMPHELPER(cmpgt
);
154 VIS_CMPHELPER(cmpeq
);
155 VIS_CMPHELPER(cmple
);
156 VIS_CMPHELPER(cmpne
);
159 #undef F_HELPER_DQ_0_1
162 DEF_HELPER_1(compute_psr
, void, env
);
163 DEF_HELPER_1(compute_C_icc
, i32
, env
);
165 #include "def-helper.h"