Implement CMP(3)
Jeffrey Pfau jeffrey@endrift.com
Sat, 13 Apr 2013 12:28:24 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/isa-thumb.c
→
src/isa-thumb.c
@@ -224,7 +224,7 @@ DEFINE_INSTRUCTION_WITH_HIGH_EX_THUMB(NAME ## 10, 8, 0, BODY) \
DEFINE_INSTRUCTION_WITH_HIGH_EX_THUMB(NAME ## 11, 8, 8, BODY) DEFINE_INSTRUCTION_WITH_HIGH_THUMB(ADD4, ARM_STUB) -DEFINE_INSTRUCTION_WITH_HIGH_THUMB(CMP3, ARM_STUB) +DEFINE_INSTRUCTION_WITH_HIGH_THUMB(CMP3, int32_t aluOut = cpu->gprs[rd] - cpu->gprs[rm]; THUMB_SUBTRACTION_S(cpu->gprs[rd], cpu->gprs[rm], aluOut)) DEFINE_INSTRUCTION_WITH_HIGH_THUMB(MOV3, cpu->gprs[rd] = cpu->gprs[rm]) #define DEFINE_IMMEDIATE_WITH_REGISTER_EX_THUMB(NAME, RD, BODY) \