Value of offset operand for microMIPS BALC and BC instructions is currently shifted 2 bits, but it should be 1 bit.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM with a couple nits
lib/Target/Mips/Disassembler/MipsDisassembler.cpp | ||
---|---|---|
1869 ↗ | (On Diff #40493) | They're functionally the same thing but I'd slightly prefer '<< 1' over '* 2' since we're talking about shifting bits rather than arithmetic. |
lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp | ||
356–359 ↗ | (On Diff #40493) | Please format as clang-format would. |