Revision 390efc54 target-arm/translate.c

b/target-arm/translate.c
457 457
    tcg_gen_xori_i32(t0, t1, ~0);
458 458
}
459 459

  
460
/* FIXME:  Implement this natively.  */
461
static inline void tcg_gen_neg_i64(TCGv dest, TCGv src)
462
{
463
    tcg_gen_sub_i64(dest, tcg_const_i64(0), src);
464
}
465

  
466 460
/* T0 &= ~T1.  Clobbers T1.  */
467 461
/* FIXME: Implement bic natively.  */
468 462
static inline void tcg_gen_bic_i32(TCGv dest, TCGv t0, TCGv t1)
......
8111 8105
            break;
8112 8106
        case 0x9: /* neg */
8113 8107
            if (s->condexec_mask)
8114
                gen_op_subl_T0_T1();
8108
                tcg_gen_neg_i32(cpu_T[0], cpu_T[1]);
8115 8109
            else
8116 8110
                gen_op_subl_T0_T1_cc();
8117 8111
            break;

Also available in: Unified diff