Revision f484d386 target-i386/ops_template.h

b/target-i386/ops_template.h
203 203
/* bit operations */
204 204
#if DATA_BITS >= 16
205 205

  
206
void OPPROTO glue(glue(op_bt, SUFFIX), _T0_T1_cc)(void)
207
{
208
    int count;
209
    count = T1 & SHIFT_MASK;
210
    CC_SRC = T0 >> count;
211
}
212

  
213
void OPPROTO glue(glue(op_bts, SUFFIX), _T0_T1_cc)(void)
214
{
215
    int count;
216
    count = T1 & SHIFT_MASK;
217
    T1 = T0 >> count;
218
    T0 |= (((target_long)1) << count);
219
}
220

  
221
void OPPROTO glue(glue(op_btr, SUFFIX), _T0_T1_cc)(void)
222
{
223
    int count;
224
    count = T1 & SHIFT_MASK;
225
    T1 = T0 >> count;
226
    T0 &= ~(((target_long)1) << count);
227
}
228

  
229
void OPPROTO glue(glue(op_btc, SUFFIX), _T0_T1_cc)(void)
230
{
231
    int count;
232
    count = T1 & SHIFT_MASK;
233
    T1 = T0 >> count;
234
    T0 ^= (((target_long)1) << count);
235
}
236

  
237
void OPPROTO glue(glue(op_add_bit, SUFFIX), _A0_T1)(void)
238
{
239
    A0 += ((DATA_STYPE)T1 >> (3 + SHIFT)) << SHIFT;
240
}
241

  
242 206
void OPPROTO glue(glue(op_bsf, SUFFIX), _T0_cc)(void)
243 207
{
244 208
    int count;
......
281 245

  
282 246
#endif
283 247

  
284
#if DATA_BITS == 32
285
void OPPROTO op_update_bt_cc(void)
286
{
287
    CC_SRC = T1;
288
}
289
#endif
290

  
291 248
/* string operations */
292 249

  
293 250
void OPPROTO glue(op_movl_T0_Dshift, SUFFIX)(void)

Also available in: Unified diff