This is an archive of the discontinued LLVM Phabricator instance.

[mips] Improve error/warning messages and testing for the .cpload assembler directive.
ClosedPublic

Authored by tomatabacu on Sep 23 2014, 6:21 AM.

Details

Summary

Improved warning message when using .cpload inside a reorder section and added an error message for using .cpload with Mips16 enabled.
Modified the tests to fit with the changes mentioned above, added a test-case for the N32 ABI in cpload.s and did some reformatting to make the tests easier to read.

Diff Detail

Event Timeline

tomatabacu updated this revision to Diff 13985.Sep 23 2014, 6:21 AM
tomatabacu retitled this revision from to [mips] Improve error/warning messages and testing for the .cpload assembler directive..
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).

For the .cpload in Mips16 case, we have a choice between an error and a warning. I took the more conservative GAS approach and chose the error.

tomatabacu updated this revision to Diff 14284.Oct 1 2014, 7:15 AM

Added an error and test case for when the EndOfStatement is not found at the appropriate location.
Slightly improved the reporting of the ".cpload is not supported in Mips16 mode" error.

dsanders requested changes to this revision.Nov 4 2014, 2:25 AM
dsanders edited edge metadata.

Could you correct the N32 test case?

test/MC/Mips/cpload.s
7–14

N32 is not allowed on a 32-bit processor since it's a 64-bit ABI. You should take the N64 run line and change it to N32 instead.

This revision now requires changes to proceed.Nov 4 2014, 2:25 AM
tomatabacu updated this revision to Diff 15772.Nov 4 2014, 9:53 AM
tomatabacu edited edge metadata.

Fixed the N32 test case.

dsanders accepted this revision.Nov 5 2014, 5:58 AM
dsanders edited edge metadata.

Thanks. LGTM

This revision is now accepted and ready to land.Nov 5 2014, 5:58 AM
tomatabacu closed this revision.Nov 6 2014, 2:13 AM