This is an archive of the discontinued LLVM Phabricator instance.

ARM64: start porting regression tests from AArch64
ClosedPublic

Authored by t.p.northover on Apr 11 2014, 4:45 AM.

Details

Summary

Hi all,

This is the start of my work to make sure all AArch64 regression tests pass on the ARM64 backend as well.

In the end, I decided that it would be best to modify the existing AArch64 tests rather than create duplicates in the ARM64 directory.

This has the advantage that they're guaranteed to stay in sync: if someone adds a new feature to AArch64 that isn't in ARM64, the test will start failing and some action must be taken. I suggest adding the feature if possible, or creating bugzilla report if necessary and putting a hack in the test.

The disadvantage is that anyone building Clang with *just* AArch64 enabled (not ARM64) will get less test coverage (none of lib/CodeGen/AArch64 will run for that compiler). This is a fairly large disadvantage in those situations, so I'd understand if this is unacceptable to some users.

What's the feeling on this approach?

Cheers.

Tim.

Diff Detail

Event Timeline

Hi Tim,

I'm OK with this basic method.

Shouldn't changing 'or' to 'and' in lit config just work? I think you just
want to say we need to run the test under AArch64 for both AArch64 and
ARM64, right?

Thanks,
-Jiangning

t.p.northover accepted this revision.Jun 26 2014, 6:31 AM
t.p.northover added a reviewer: t.p.northover.
This revision is now accepted and ready to land.Jun 26 2014, 6:31 AM
t.p.northover closed this revision.Jun 26 2014, 6:31 AM