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_2(array8
, tl
, tl
, tl
)
20 DEF_HELPER_2(alignaddr
, tl
, 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_0(debug
, void)
36 DEF_HELPER_0(save
, void)
37 DEF_HELPER_0(restore
, void)
38 DEF_HELPER_1(flush
, void, tl
)
39 DEF_HELPER_2(udiv
, tl
, tl
, tl
)
40 DEF_HELPER_2(udiv_cc
, tl
, tl
, tl
)
41 DEF_HELPER_2(sdiv
, tl
, tl
, tl
)
42 DEF_HELPER_2(sdiv_cc
, tl
, tl
, tl
)
43 DEF_HELPER_2(stdf
, void, tl
, int)
44 DEF_HELPER_2(lddf
, void, tl
, int)
45 DEF_HELPER_2(ldqf
, void, tl
, int)
46 DEF_HELPER_2(stqf
, void, tl
, int)
47 #if !defined(CONFIG_USER_ONLY) || defined(TARGET_SPARC64)
48 DEF_HELPER_4(ld_asi
, i64
, tl
, int, int, int)
49 DEF_HELPER_4(st_asi
, void, tl
, i64
, int, int)
51 DEF_HELPER_1(ldfsr
, void, i32
)
52 DEF_HELPER_0(check_ieee_exceptions
, void)
53 DEF_HELPER_0(clear_float_exceptions
, void)
54 DEF_HELPER_1(fabss
, f32
, f32
)
55 DEF_HELPER_1(fsqrts
, f32
, f32
)
56 DEF_HELPER_0(fsqrtd
, void)
57 DEF_HELPER_2(fcmps
, void, f32
, f32
)
58 DEF_HELPER_0(fcmpd
, void)
59 DEF_HELPER_2(fcmpes
, void, f32
, f32
)
60 DEF_HELPER_0(fcmped
, void)
61 DEF_HELPER_0(fsqrtq
, void)
62 DEF_HELPER_0(fcmpq
, void)
63 DEF_HELPER_0(fcmpeq
, void)
65 DEF_HELPER_1(ldxfsr
, void, i64
)
66 DEF_HELPER_0(fabsd
, void)
67 DEF_HELPER_2(fcmps_fcc1
, void, f32
, f32
)
68 DEF_HELPER_2(fcmps_fcc2
, void, f32
, f32
)
69 DEF_HELPER_2(fcmps_fcc3
, void, f32
, f32
)
70 DEF_HELPER_0(fcmpd_fcc1
, void)
71 DEF_HELPER_0(fcmpd_fcc2
, void)
72 DEF_HELPER_0(fcmpd_fcc3
, void)
73 DEF_HELPER_2(fcmpes_fcc1
, void, f32
, f32
)
74 DEF_HELPER_2(fcmpes_fcc2
, void, f32
, f32
)
75 DEF_HELPER_2(fcmpes_fcc3
, void, f32
, f32
)
76 DEF_HELPER_0(fcmped_fcc1
, void)
77 DEF_HELPER_0(fcmped_fcc2
, void)
78 DEF_HELPER_0(fcmped_fcc3
, void)
79 DEF_HELPER_0(fabsq
, void)
80 DEF_HELPER_0(fcmpq_fcc1
, void)
81 DEF_HELPER_0(fcmpq_fcc2
, void)
82 DEF_HELPER_0(fcmpq_fcc3
, void)
83 DEF_HELPER_0(fcmpeq_fcc1
, void)
84 DEF_HELPER_0(fcmpeq_fcc2
, void)
85 DEF_HELPER_0(fcmpeq_fcc3
, void)
87 DEF_HELPER_1(raise_exception
, void, int)
88 DEF_HELPER_0(shutdown
, void)
89 #define F_HELPER_0_0(name) DEF_HELPER_0(f ## name, void)
90 #define F_HELPER_DQ_0_0(name) \
91 F_HELPER_0_0(name ## d); \
92 F_HELPER_0_0(name ## q)
99 DEF_HELPER_2(fadds
, f32
, f32
, f32
)
100 DEF_HELPER_2(fsubs
, f32
, f32
, f32
)
101 DEF_HELPER_2(fmuls
, f32
, f32
, f32
)
102 DEF_HELPER_2(fdivs
, f32
, f32
, f32
)
104 DEF_HELPER_2(fsmuld
, void, f32
, f32
)
107 DEF_HELPER_1(fnegs
, f32
, f32
)
108 DEF_HELPER_1(fitod
, void, s32
)
109 DEF_HELPER_1(fitoq
, void, s32
)
111 DEF_HELPER_1(fitos
, f32
, s32
)
113 #ifdef TARGET_SPARC64
114 DEF_HELPER_0(fnegd
, void)
115 DEF_HELPER_0(fnegq
, void)
116 DEF_HELPER_0(fxtos
, i32
)
117 F_HELPER_DQ_0_0(xto
);
119 DEF_HELPER_0(fdtos
, f32
)
120 DEF_HELPER_1(fstod
, void, f32
)
121 DEF_HELPER_0(fqtos
, f32
)
122 DEF_HELPER_1(fstoq
, void, f32
)
125 DEF_HELPER_1(fstoi
, s32
, f32
)
126 DEF_HELPER_0(fdtoi
, s32
)
127 DEF_HELPER_0(fqtoi
, s32
)
128 #ifdef TARGET_SPARC64
129 DEF_HELPER_1(fstox
, void, i32
)
132 F_HELPER_0_0(aligndata
);
134 F_HELPER_0_0(pmerge
);
135 F_HELPER_0_0(mul8x16
);
136 F_HELPER_0_0(mul8x16al
);
137 F_HELPER_0_0(mul8x16au
);
138 F_HELPER_0_0(mul8sux16
);
139 F_HELPER_0_0(mul8ulx16
);
140 F_HELPER_0_0(muld8sux16
);
141 F_HELPER_0_0(muld8ulx16
);
142 F_HELPER_0_0(expand
);
143 #define VIS_HELPER(name) \
144 F_HELPER_0_0(name##16); \
145 DEF_HELPER_2(f ## name ## 16s, i32, i32, i32) \
146 F_HELPER_0_0(name##32); \
147 DEF_HELPER_2(f ## name ## 32s, i32, i32, i32)
151 #define VIS_CMPHELPER(name) \
152 F_HELPER_0_0(name##16); \
153 F_HELPER_0_0(name##32)
154 VIS_CMPHELPER(cmpgt
);
155 VIS_CMPHELPER(cmpeq
);
156 VIS_CMPHELPER(cmple
);
157 VIS_CMPHELPER(cmpne
);
160 #undef F_HELPER_DQ_0_0
163 DEF_HELPER_0(compute_psr
, void);
164 DEF_HELPER_0(compute_C_icc
, i32
);
166 #include "def-helper.h"