Implemented *_DESC, *_ENC classes, encoder/decoder methods.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM but could you explain the need for the custom instruction decode function? It looks like the usual tablegen-erated one would do the same thing but I'm also expecting the branches to have a couple issues with the tablegen-erated code (because of the 'rs < rt' restrictions and similar).
lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.h | ||
---|---|---|
105 | 'MM' suffix in comment | |
lib/Target/Mips/Mips32r6InstrInfo.td | ||
163 | I'm not sure why a custom instruction decode function is necessary. Can you explain? |
lib/Target/Mips/Disassembler/MipsDisassembler.cpp | ||
---|---|---|
896 | I believe this should be doing a sign extend of the offset value. |
Comment Actions
Here the method DecodeJumpOffset16 is removed and the DecodeSimm16 is used instead. Also, the MM sufix is removed from the comment in MipsMCCodeEmitter.h.
I believe this should be doing a sign extend of the offset value.