HomePhabricator

[mips] Fix decoding of microMIPS JALX instruction

Description

[mips] Fix decoding of microMIPS JALX instruction

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

Differential Revision: https://reviews.llvm.org/D67320

Details

Committed
atanasyanMon, Sep 9, 10:28 AM
Differential Revision
D67320: [mips] Fix decoding of microMIPS JALX instruction
Parents
rL371427: AMDGPU: Move MnemonicAlias out of instruction def hierarchy
Branches
Unknown
Tags
Unknown