Page MenuHomePhabricator

[mips] Fix decoding of microMIPS JALX instruction
ClosedPublic

Authored by atanasyan on Sat, Sep 7, 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.Sat, Sep 7, 9:45 AM
Herald added a project: Restricted Project. · View Herald Transcript
This revision is now accepted and ready to land.Mon, Sep 9, 8:08 AM
This revision was automatically updated to reflect the committed changes.