aarch64: Enable FP16 feature by default for Armv9
authorAndre Vieira <andre.simoesdiasvieira@arm.com>
Tue, 22 Mar 2022 11:44:06 +0000 (11:44 +0000)
committerAndre Vieira <andre.simoesdiasvieira@arm.com>
Tue, 22 Mar 2022 11:47:01 +0000 (11:47 +0000)
This patch adds the feature bit for FP16 to the feature set for Armv9 since
Armv9 requires SVE to be implemented and SVE requires FP16 to be implemented.

2022-03-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>

* config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH9): Add FP16 feature
bit.

gcc/config/aarch64/aarch64.h

index 27ba4f4..efa46ac 100644 (file)
@@ -278,7 +278,8 @@ extern unsigned aarch64_architecture_version;
 #define AARCH64_FL_FOR_ARCH8_R     \
   (AARCH64_FL_FOR_ARCH8_4 | AARCH64_FL_V8_R)
 #define AARCH64_FL_FOR_ARCH9       \
-  (AARCH64_FL_FOR_ARCH8_5 | AARCH64_FL_SVE | AARCH64_FL_SVE2 | AARCH64_FL_V9)
+  (AARCH64_FL_FOR_ARCH8_5 | AARCH64_FL_SVE | AARCH64_FL_SVE2 | AARCH64_FL_V9 \
+   | AARCH64_FL_F16)
 
 /* Macros to test ISA flags.  */