Revision 36aa55dc tcg/tcg-op.h

b/tcg/tcg-op.h
1395 1395
}
1396 1396
#endif
1397 1397

  
1398
static inline void tcg_gen_concat_i32_i64(TCGv dest, TCGv low, TCGv high)
1399
{
1400
#if TCG_TARGET_REG_BITS == 32
1401
    tcg_gen_mov_i32(dest, low);
1402
    tcg_gen_mov_i32(TCGV_HIGH(dest), high);
1403
#else
1404
    TCGv tmp = tcg_temp_new (TCG_TYPE_I64);
1405
    /* This extension is only needed for type correctness.
1406
       We may be able to do better given target specific information.  */
1407
    tcg_gen_extu_i32_i64(tmp, high);
1408
    tcg_gen_shli_i64(tmp, tmp, 32);
1409
    tcg_gen_extu_i32_i64(dest, low);
1410
    tcg_gen_or_i64(dest, dest, tmp);
1411
    tcg_temp_free(tmp);
1412
#endif
1413
}
1414

  
1398 1415
/***************************************/
1399 1416
/* QEMU specific operations. Their type depend on the QEMU CPU
1400 1417
   type. */

Also available in: Unified diff