This is an archive of the discontinued LLVM Phabricator instance.

[mips][ias] Implement .cpreturn directive.
ClosedPublic

Authored by dsanders on Sep 21 2015, 6:07 AM.

Details

Summary

Based on a patch by David Chisnall. I've modified the original patch as follows:

  • Moved the expansion to the TargetStreamers so that the directive isn't expanded when emitting assembly.
  • Fixed an operand order bug.
  • Changed the move instructions from DADDu to OR to match recent changes to GAS.

Diff Detail

Event Timeline

dsanders updated this revision to Diff 35242.Sep 21 2015, 6:07 AM
dsanders retitled this revision from to [mips][ias] Implement .cpreturn directive..
dsanders updated this object.
dsanders added a reviewer: vkalintiris.

Tested on the mips3 target for FreeBSD mips64 and it works great. Thanks!

vkalintiris accepted this revision.Sep 22 2015, 2:31 AM
vkalintiris edited edge metadata.

LGTM too.

This revision is now accepted and ready to land.Sep 22 2015, 2:31 AM
dsanders closed this revision.Sep 22 2015, 3:51 AM