The canonical GNU form of JALR resembles a load/store instruction rather
than placing the immediate offset as a separate argument, so match this
behaviour. Also add parser-only aliases for the three-operand form, and
add other shorter aliases also emitted by GNU tools.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
test/CodeGen/RISCV/branch-relaxation.ll | ||
---|---|---|
35 ↗ | (On Diff #176650) | Currently the MCOperandPredicate for simm12 doesn't match things other than literal constants and bare symbols so our aliases don't match; in future it should be modified to match the various LO12 variant kinds. |
Thanks James, this looks good to me (needs a rebase and trivial changes for rv32e-valid.s before landing).
This change has caused test failures in lld tests:
http://lab.llvm.org:8011/builders/lld-x86_64-ubuntu-fast/builds/3357
Test failures in lld tests: http://lab.llvm.org:8011/builders/lld-x86_64-ubuntu-fast/builds/3357
Oh great, please land yours then. Mind is written blind as lld doesn't seem to be building after I add it to LLVM_ENABLE_PROJECTS. Will have to wipe my build dir and wait a while.
Would you be able to do a post commit look over: https://github.com/llvm/llvm-project/commit/3e10905c49ffda36d7a90e24be1ab30832fa4afc
??
Thanks
PL
LGTM. Thanks for helping clean this up. LLD is now in my standard build and pre-commit check setup.