This is an archive of the discontinued LLVM Phabricator instance.

[RISCV][NFC] Add more constant materialization tests
ClosedPublic

Authored by luismarques on May 5 2020, 4:08 PM.

Details

Summary

This patch adds more constant materialization tests, focusing on cases where we could improve our materialization instruction sequences (particularly for RV64). Various of these cases will be improved upon in follow-up patches.

(The patch also adds some comments in tests which indicate the hexadecimal value of the respective decimal literals, since the larger literals are hard to mentally map to their hex value).

Diff Detail

Event Timeline

luismarques created this revision.May 5 2020, 4:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 5 2020, 4:08 PM
lenary accepted this revision.May 6 2020, 2:59 AM

Nice work!

This revision is now accepted and ready to land.May 6 2020, 2:59 AM
lenary retitled this revision from [RISCV] Add more constant materialization tests to [RISCV][NFC] Add more constant materialization tests.May 6 2020, 7:16 AM

Add one more test case.

This revision was automatically updated to reflect the committed changes.