Revision 4b5a85c1 tcg/sparc/tcg-target.c

b/tcg/sparc/tcg-target.c
1234 1234
        c = ARITH_UMUL;
1235 1235
        goto gen_arith;
1236 1236

  
1237
    OP_32_64(neg):
1238
	c = ARITH_SUB;
1239
	goto gen_arith1;
1240

  
1237 1241
    case INDEX_op_div_i32:
1238 1242
        tcg_out_div32(s, args[0], args[1], args[2], const_args[2], 0);
1239 1243
        break;
......
1392 1396
        tcg_out_arithc(s, args[0], args[1], args[2], const_args[2], c);
1393 1397
        break;
1394 1398

  
1399
    gen_arith1:
1400
	tcg_out_arithc(s, args[0], TCG_REG_G0, args[1], const_args[1], c);
1401
	break;
1402

  
1395 1403
    default:
1396 1404
        fprintf(stderr, "unknown opcode 0x%x\n", opc);
1397 1405
        tcg_abort();
......
1431 1439
    { INDEX_op_shr_i32, { "r", "r", "rJ" } },
1432 1440
    { INDEX_op_sar_i32, { "r", "r", "rJ" } },
1433 1441

  
1442
    { INDEX_op_neg_i32, { "r", "rJ" } },
1443

  
1434 1444
    { INDEX_op_brcond_i32, { "r", "rJ" } },
1435 1445
    { INDEX_op_setcond_i32, { "r", "r", "rJ" } },
1436 1446

  
......
1484 1494
    { INDEX_op_shl_i64, { "r", "r", "rJ" } },
1485 1495
    { INDEX_op_shr_i64, { "r", "r", "rJ" } },
1486 1496
    { INDEX_op_sar_i64, { "r", "r", "rJ" } },
1497

  
1498
    { INDEX_op_neg_i64, { "r", "rJ" } },
1499

  
1487 1500
    { INDEX_op_ext32s_i64, { "r", "ri" } },
1488 1501
    { INDEX_op_ext32u_i64, { "r", "ri" } },
1489 1502

  

Also available in: Unified diff