This is an archive of the discontinued LLVM Phabricator instance.

[mips] Add movep for microMIPS32R6 and fix microMIPS32r3 version
ClosedPublic

Authored by sdardis on Nov 1 2017, 9:33 AM.

Details

Summary

Previously, the 'movep' instruction was defined for microMIPS32r3 and
shared that definition with microMIPS32R6. 'movep' was re-encoded for
microMIPS32r6, so this patch provides the correct encoding.

Secondly, correct the encoding of the 'rs' and 'rt' operands which have
an instruction specific encoding for the registers those operands accept.

Finally, correct the decoding of the 'dst_regs' operand which was extracting
the relevant field from the instruction, but was actually extracting the
field from the alreadly extracted field.

Event Timeline

sdardis created this revision.Nov 1 2017, 9:33 AM
This revision is now accepted and ready to land.Nov 4 2017, 2:10 AM
This revision was automatically updated to reflect the committed changes.