[AArch64] Armv9-A implies FP16
authorDavid Green <david.green@arm.com>
Thu, 19 Jan 2023 15:37:50 +0000 (15:37 +0000)
committerDavid Green <david.green@arm.com>
Thu, 19 Jan 2023 15:37:50 +0000 (15:37 +0000)
commitee700dec052a0336798fb2570faec31719b53f8d
treeabcbb2a11307f3d775c4d10aca281bd8a19364bb
parente0b3b6cec7cf1c03bde8b65dcd2f9233839ad0a9
[AArch64] Armv9-A implies FP16

As Armv9-a implies SVE2 it implies SVE (added in D141411) and so it
should also imply FP16, which this patch adds. This helps get the target
features correct when using `target("arch=armv9-a")` attributes.

There is also an adjustment to AssertSameExtensionFlags in this patch to
make it print cpu names, useful when the TargetParser unit tests are run
through lit to distinguish which cpu is failing.

Differential Revision: https://reviews.llvm.org/D142087
clang/test/CodeGen/aarch64-targetattr-arch.c
clang/test/CodeGen/aarch64-targetattr.c
llvm/include/llvm/TargetParser/AArch64TargetParser.h
llvm/unittests/TargetParser/TargetParserTest.cpp