This is an archive of the discontinued LLVM Phabricator instance.

[mips] Fix decoding of microMIPS JALX instruction
ClosedPublic

Authored by atanasyan on Sep 7 2019, 9:45 AM.

Details

Summary

microMIPS jump and link exchange instruction stores a target in a 26-bits field. Despite other microMIPS JAL instructions these bits are target address shifted right 2 bits [1]. The patch fixes the JALX instruction decoding and uses 2-bit shift.

[1] MIPS Architecture for Programmers Volume II-B: The microMIPS32 Instruction Set

Diff Detail

Repository
rL LLVM

Event Timeline

atanasyan created this revision.Sep 7 2019, 9:45 AM
Herald added a project: Restricted Project. · View Herald Transcript
This revision is now accepted and ready to land.Sep 9 2019, 8:08 AM
This revision was automatically updated to reflect the committed changes.