This is an archive of the discontinued LLVM Phabricator instance.

[mips] Improve support for the .set mips16/nomips16 assembler directives.
ClosedPublic

Authored by tomatabacu on Sep 23 2014, 3:37 AM.

Details

Summary

Appropriately set/clear the FeatureBit for Mips16 when these assembler directives are used and also emit ".set nomips16" (previously, only ".set mips16" was being emitted).

These improvements allow for better testing of the .cpload/.cprestore assembler directives (which are not supposed to work when Mips16 is enabled).

Diff Detail

Event Timeline

tomatabacu updated this revision to Diff 13978.Sep 23 2014, 3:37 AM
tomatabacu retitled this revision from to [mips] Improve support for the .set mips16/nomips16 assembler directives..
tomatabacu updated this object.
tomatabacu edited the test plan for this revision. (Show Details)
tomatabacu added a reviewer: dsanders.
tomatabacu added a subscriber: Unknown Object (MLST).
tomatabacu updated this revision to Diff 15182.Oct 21 2014, 5:08 AM

Remove excess whitespace.

tomatabacu edited the test plan for this revision. (Show Details)Oct 23 2014, 3:28 AM
dsanders accepted this revision.Nov 4 2014, 2:21 AM
dsanders edited edge metadata.

You're right that MIPS16 hasn't been implemented for the integrated assembler yet. This adds some support and enables testing of .cpload/.cprestore so LGTM

Could you explain how you improved these directives in the commit message though. As written, it's not very helpful for those without the context.

This revision is now accepted and ready to land.Nov 4 2014, 2:21 AM
tomatabacu updated this object.Nov 4 2014, 8:18 AM
tomatabacu edited edge metadata.
tomatabacu closed this revision.Nov 4 2014, 9:28 AM