This is an archive of the discontinued LLVM Phabricator instance.

[MIPS][LLVM-MC] Fix JR encoding for MIPSR6 ISA
ClosedPublic

Authored by nitesh.jain on Mar 23 2016, 2:03 AM.

Details

Summary

As per the MIPS32R6 spec. the assembler should accept JR and map it to JALR encoding. This Patch fix these.

Diff Detail

Repository
rL LLVM

Event Timeline

nitesh.jain retitled this revision from to [LLVM][MC] Fix JR encoding for MIPSR6 ISA.
nitesh.jain updated this object.
nitesh.jain added reviewers: dsanders, vkalintiris.
nitesh.jain set the repository for this revision to rL LLVM.
nitesh.jain added subscribers: jaydeep, bhushan, slthakur and 2 others.
nitesh.jain retitled this revision from [LLVM][MC] Fix JR encoding for MIPSR6 ISA to [MIPS][LLVM-MC] Fix JR encoding for MIPSR6 ISA.Mar 23 2016, 2:07 AM
dsanders accepted this revision.Mar 23 2016, 3:03 AM
dsanders edited edge metadata.

LGTM. For the commit message, could you mention that the assembler was picking the wrong JR variant because the pre-R6 one was still enabled at R6.

This revision is now accepted and ready to land.Mar 23 2016, 3:03 AM
nitesh.jain closed this revision.Apr 1 2016, 5:30 AM

Committed in revision 265134.