This is an archive of the discontinued LLVM Phabricator instance.

[mips] MIPSR6 Compact jump aliases
ClosedPublic

Authored by sdardis on Apr 7 2016, 6:32 AM.

Details

Summary

Alias 'jic $reg, 0' to 'jrc $reg' and 'jialc $reg, 0' to 'jalrc $reg' like binutils.

Diff Detail

Repository
rL LLVM

Event Timeline

sdardis updated this revision to Diff 52908.Apr 7 2016, 6:32 AM
sdardis retitled this revision from to [mips] MIPSR6 Compact jump aliases.
sdardis updated this object.
sdardis set the repository for this revision to rL LLVM.
sdardis added a subscriber: llvm-commits.
dsanders accepted this revision.Apr 8 2016, 7:43 AM
dsanders added a reviewer: dsanders.

LGTM with the GPR_32 added

lib/Target/Mips/Mips32r6InstrInfo.td
820–822 ↗(On Diff #52908)

We need GPR_32 on these so that they aren't available on MIPS64R6. 'jr' needs it too.

This revision is now accepted and ready to land.Apr 8 2016, 7:43 AM
This revision was automatically updated to reflect the committed changes.

Updated and committed as r266055.

Thanks.