This is an archive of the discontinued LLVM Phabricator instance.

[ARM][AArch64] clang support for Armv9.3-A
ClosedPublic

Authored by tmatheson on Dec 22 2021, 3:26 AM.

Details

Summary

This patch introduces support for targetting the Armv9.3-A architecture,
which should map to the existing Armv8.8-A extensions.

Diff Detail

Event Timeline

tmatheson created this revision.Dec 22 2021, 3:26 AM
tmatheson requested review of this revision.Dec 22 2021, 3:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 22 2021, 3:26 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
clang/test/Driver/arm-cortex-cpus.c
445

Is this RUN line a duplicate of L443? Maybe you meant to test a hyphen in the march?

446

how about thumb targets? I recognize this test doesn't already do so for older extensions.

446

This test sets -mlittle-endian twice. Is that intentional? Should the aarch64 test above clang/test/Driver/aarch64-cpus.c also have such a test, or should this RUN line be removed? Or was something else meant to be tested?

tmatheson updated this revision to Diff 396679.Dec 30 2021, 8:32 AM
tmatheson marked 2 inline comments as done.

Remove redundancies in arm tests

tmatheson added inline comments.Dec 30 2021, 8:41 AM
clang/test/Driver/arm-cortex-cpus.c
445

Good catch, I've removed it. The same redundancy has been copy-pasted a few times by the look of it. Looks like the origins are in testing that armv8 and armv8a are synonymous, which doesn't seem to be the case for later versions.

I have created D116415 for the occurrences.

446

Also copy-pasted from above; I don't see any point to it, so removed. See also D116415.

446

The above tests seem so be considered sufficient since 8.2, nothing much has changed afaik so I don't see any need to add them.

nickdesaulniers accepted this revision.Dec 30 2021, 10:07 AM
This revision is now accepted and ready to land.Dec 30 2021, 10:07 AM
This revision was landed with ongoing or failed builds.Jan 3 2022, 8:03 AM
This revision was automatically updated to reflect the committed changes.