From 390efc54fb87e91ac9aeb47a7bc23806452b30cb Mon Sep 17 00:00:00 2001 From: pbrook Date: Sun, 11 May 2008 14:35:37 +0000 Subject: Add TCG native negation op. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4426 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-arm/translate.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'target-arm') diff --git a/target-arm/translate.c b/target-arm/translate.c index 711676ff7..ef46342df 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -457,12 +457,6 @@ static inline void tcg_gen_not_i32(TCGv t0, TCGv t1) tcg_gen_xori_i32(t0, t1, ~0); } -/* FIXME: Implement this natively. */ -static inline void tcg_gen_neg_i64(TCGv dest, TCGv src) -{ - tcg_gen_sub_i64(dest, tcg_const_i64(0), src); -} - /* T0 &= ~T1. Clobbers T1. */ /* FIXME: Implement bic natively. */ static inline void tcg_gen_bic_i32(TCGv dest, TCGv t0, TCGv t1) @@ -8111,7 +8105,7 @@ static void disas_thumb_insn(CPUState *env, DisasContext *s) break; case 0x9: /* neg */ if (s->condexec_mask) - gen_op_subl_T0_T1(); + tcg_gen_neg_i32(cpu_T[0], cpu_T[1]); else gen_op_subl_T0_T1_cc(); break; -- cgit v1.2.3