diff --git a/src/isa-thumb.c b/src/isa-thumb.c index 44fabe740..b766fbe17 100644 --- a/src/isa-thumb.c +++ b/src/isa-thumb.c @@ -97,13 +97,13 @@ DEFINE_DATA_FORM_1_INSTRUCTION_THUMB(SUB, ) DEFINE_DATA_FORM_2_INSTRUCTION_THUMB(ADD, ) DEFINE_DATA_FORM_2_INSTRUCTION_THUMB(SUB, ) -#define DEFINE_DATA_FORM_3_INSTRUCTION_EX_THUMB(NAME, RM, BODY) \ +#define DEFINE_DATA_FORM_3_INSTRUCTION_EX_THUMB(NAME, RD, BODY) \ DEFINE_INSTRUCTION_THUMB(NAME, \ int rd = RD; \ BODY;) #define DEFINE_DATA_FORM_3_INSTRUCTION_THUMB(NAME, BODY) \ - COUNT_3(DEFINE_DATA_FORM_2_INSTRUCTION_EX_THUMB, NAME ## _R, BODY) + COUNT_3(DEFINE_DATA_FORM_3_INSTRUCTION_EX_THUMB, NAME ## _R, BODY) DEFINE_DATA_FORM_3_INSTRUCTION_THUMB(ADD2, ) DEFINE_DATA_FORM_3_INSTRUCTION_THUMB(CMP1, )