This is an archive of the discontinued LLVM Phabricator instance.

Make TargetParserTest.ARMExtensionFeatures not run out of memory on 32-bit (PR42316)
ClosedPublic

Authored by SjoerdMeijer on Jun 19 2019, 12:51 PM.

Details

Summary

Nothing of these tests made much sense. Loops were iterating too much, and I also don't think it was actually testing anything. I think we simply want to check that AEK_SOME_EXT returns "+some_ext".

Diff Detail

Repository
rL LLVM

Event Timeline

SjoerdMeijer created this revision.Jun 19 2019, 12:51 PM
dmgreen accepted this revision.Jun 20 2019, 1:45 AM

I agree that the old test wasn't very helpful and this one is a lot better. Can you also check that AEK_INVALID returns no features, and the others arm calls only add one (size() == 1).

Other than that, LGTM.

This revision is now accepted and ready to land.Jun 20 2019, 1:45 AM

Thanks for reviewing Dave. Will add what you suggested before committing.

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJun 20 2019, 2:31 AM