This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add CSR instruction aliases (imm. operands)
ClosedPublic

Authored by luismarques on Nov 28 2018, 9:10 AM.

Details

Summary

This patch adds CSR instructions aliases for the cases where the instruction takes an immediate operand but the alias doesn't have the i suffix. This is necessary for GCC compatibility.

Diff Detail

Repository
rL LLVM

Event Timeline

luismarques created this revision.Nov 28 2018, 9:10 AM
asb accepted this revision.Nov 30 2018, 5:55 AM

Looks good to me. I double-checked that gas doesn't do this same conversion for fsflags and fsrm. It doesn't, so this seems complete.

Thanks!

This revision is now accepted and ready to land.Nov 30 2018, 5:55 AM
This revision was automatically updated to reflect the committed changes.