Revision c5d04e99 target-sparc/op_helper.c

b/target-sparc/op_helper.c
148 148
    DT0 = int32_to_float64(*((int32_t *)&FT1), &env->fp_status);
149 149
}
150 150

  
151
F_HELPER(ito, q)
151
void helper_fitoq(int32_t src)
152 152
{
153
    QT0 = int32_to_float128(*((int32_t *)&FT1), &env->fp_status);
153
    QT0 = int32_to_float128(src, &env->fp_status);
154 154
}
155 155

  
156 156
#ifdef TARGET_SPARC64
......
182 182
    DT0 = float32_to_float64(FT1, &env->fp_status);
183 183
}
184 184

  
185
void helper_fqtos(void)
185
float32 helper_fqtos(void)
186 186
{
187
    FT0 = float128_to_float32(QT1, &env->fp_status);
187
    return float128_to_float32(QT1, &env->fp_status);
188 188
}
189 189

  
190
void helper_fstoq(void)
190
void helper_fstoq(float32 src)
191 191
{
192
    QT0 = float32_to_float128(FT1, &env->fp_status);
192
    QT0 = float32_to_float128(src, &env->fp_status);
193 193
}
194 194

  
195 195
void helper_fqtod(void)
......
213 213
    *((int32_t *)&FT0) = float64_to_int32_round_to_zero(DT1, &env->fp_status);
214 214
}
215 215

  
216
void helper_fqtoi(void)
216
int32_t helper_fqtoi(void)
217 217
{
218
    *((int32_t *)&FT0) = float128_to_int32_round_to_zero(QT1, &env->fp_status);
218
    return float128_to_int32_round_to_zero(QT1, &env->fp_status);
219 219
}
220 220

  
221 221
#ifdef TARGET_SPARC64

Also available in: Unified diff