This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Clean up LSE directive tests
ClosedPublic

Authored by bogden on Jun 7 2018, 4:15 AM.

Details

Summary

These were specifying an architecture version with .cpu directive,
which is invalid. As the error for this case outputs the problem
instruction we were still matching the expectations of FileCheck.

This patch fixes up the LSE tests to do what they seem to intend. A
follow-up patch will tighten up the directive tests.

Diff Detail

Repository
rL LLVM

Event Timeline

bogden created this revision.Jun 7 2018, 4:15 AM
fhahn added a reviewer: fhahn.Jun 7 2018, 4:52 AM
fhahn added a subscriber: fhahn.

It would be great if you could add the test with .cpu generic+v8.1-a as a negative test in D47873

test/MC/AArch64/directive-arch.s
11 ↗(On Diff #150292)

armv8.1-a does imply LSE, right? So would it be better to test .arch armv8-a+lse and .arch armv8.1-a?

It would be great if you could add the test with .cpu generic+v8.1-a as a negative test in D47873

Coming soon...

test/MC/AArch64/directive-arch.s
11 ↗(On Diff #150292)

Good catch. Fixed patch coming.

bogden updated this revision to Diff 152257.Jun 21 2018, 5:13 AM

Test LSE as an extension for v8-a and as an implied feature of v8.1-a.

fhahn accepted this revision.Jun 21 2018, 5:20 AM

LGTM, thanks!

This revision is now accepted and ready to land.Jun 21 2018, 5:20 AM
This revision was automatically updated to reflect the committed changes.