Revision cc6dfecf

b/tcg/sparc/tcg-target.c
1238 1238
                       ARITH_MULX);
1239 1239
        tcg_out_arith(s, args[0], args[1], TCG_REG_I5, ARITH_SUB);
1240 1240
        break;
1241
    case INDEX_op_ext32s_i64:
1242
        if (const_args[1]) {
1243
            tcg_out_movi(s, TCG_TYPE_I64, args[0], (int32_t)args[1]);
1244
        } else {
1245
            tcg_out_arithi(s, args[0], args[1], 0, SHIFT_SRA);
1246
        }
1247
        break;
1248
    case INDEX_op_ext32u_i64:
1249
        if (const_args[1]) {
1250
            tcg_out_movi_imm32(s, args[0], args[1]);
1251
        } else {
1252
            tcg_out_arithi(s, args[0], args[1], 0, SHIFT_SRL);
1253
        }
1254
        break;
1241 1255

  
1242 1256
    case INDEX_op_brcond_i64:
1243 1257
        tcg_out_brcond_i64(s, args[2], args[0], args[1], const_args[1],
......
1344 1358
    { INDEX_op_shl_i64, { "r", "r", "rJ" } },
1345 1359
    { INDEX_op_shr_i64, { "r", "r", "rJ" } },
1346 1360
    { INDEX_op_sar_i64, { "r", "r", "rJ" } },
1361
    { INDEX_op_ext32s_i64, { "r", "ri" } },
1362
    { INDEX_op_ext32u_i64, { "r", "ri" } },
1347 1363

  
1348 1364
    { INDEX_op_brcond_i64, { "r", "rJ" } },
1349 1365
#endif
b/tcg/sparc/tcg-target.h
91 91
#define TCG_TARGET_HAS_div_i32
92 92
#define TCG_TARGET_HAS_div_i64
93 93

  
94
#if TCG_TARGET_REG_BITS == 64
95
#define TCG_TARGET_HAS_ext32s_i64
96
#define TCG_TARGET_HAS_ext32u_i64
97
#endif
98

  
94 99
//#define TCG_TARGET_HAS_bswap32_i32
95 100
//#define TCG_TARGET_HAS_bswap64_i64
96 101
//#define TCG_TARGET_HAS_neg_i32

Also available in: Unified diff