From 65e04453753856408822f80683ac8f2743250e4b Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Thu, 25 Apr 2013 00:56:43 -0700 Subject: [PATCH] Implement TST --- src/arm/isa-thumb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arm/isa-thumb.c b/src/arm/isa-thumb.c index 23e53075d..0e980ce27 100644 --- a/src/arm/isa-thumb.c +++ b/src/arm/isa-thumb.c @@ -261,7 +261,7 @@ DEFINE_DATA_FORM_5_INSTRUCTION_THUMB(ROR, } } THUMB_NEUTRAL_S( , , cpu->gprs[rd]);) -DEFINE_DATA_FORM_5_INSTRUCTION_THUMB(TST, ARM_STUB) +DEFINE_DATA_FORM_5_INSTRUCTION_THUMB(TST, int32_t aluOut = cpu->gprs[rd] & cpu->gprs[rn]; THUMB_NEUTRAL_S(cpu->gprs[rd], cpu->gprs[rn], aluOut)) DEFINE_DATA_FORM_5_INSTRUCTION_THUMB(NEG, THUMB_SUBTRACTION(cpu->gprs[rd], 0, cpu->gprs[rn])) DEFINE_DATA_FORM_5_INSTRUCTION_THUMB(CMP2, int32_t aluOut = cpu->gprs[rd] - cpu->gprs[rn]; THUMB_SUBTRACTION_S(cpu->gprs[rd], cpu->gprs[rn], aluOut)) DEFINE_DATA_FORM_5_INSTRUCTION_THUMB(CMN, int32_t aluOut = cpu->gprs[rd] + cpu->gprs[rn]; THUMB_ADDITION_S(cpu->gprs[rd], cpu->gprs[rn], aluOut))