Revision 8879d139 target-sparc/op.c

b/target-sparc/op.c
171 171

  
172 172
#define FLAG_SET(x) ((env->psr&x)?1:0)
173 173

  
174
void OPPROTO op_umul_T1_T0(void)
175
{
176
    uint64_t res;
177
    res = (uint64_t) T0 * (uint64_t) T1;
178
#ifdef TARGET_SPARC64
179
    T0 = res;
180
#else
181
    T0 = res & 0xffffffff;
182
#endif
183
    env->y = res >> 32;
184
}
185

  
186
void OPPROTO op_smul_T1_T0(void)
187
{
188
    uint64_t res;
189
    res = (int64_t) ((int32_t) T0) * (int64_t) ((int32_t) T1);
190
#ifdef TARGET_SPARC64
191
    T0 = res;
192
#else
193
    T0 = res & 0xffffffff;
194
#endif
195
    env->y = res >> 32;
196
}
197

  
198 174
void OPPROTO op_udiv_T1_T0(void)
199 175
{
200 176
    uint64_t x0;

Also available in: Unified diff