[aarch64] Enable FP16 feature by default for Armv9

Andre Vieira (lists) andre.simoesdiasvieira@arm.com
Tue Mar 8 15:19:41 GMT 2022


Hi all,

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-04  Andre Vieira  <andre.simoesdiasvieira@arm.com>

         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH9): Add FP16 
feature bit.
-------------- next part --------------
diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h
index 27ba4f4ca3fa78585733cfe68e2dee32c55282a7..efa46ac0b8799b5849b609d591186e26e5cb37ff 100644
--- a/gcc/config/aarch64/aarch64.h
+++ b/gcc/config/aarch64/aarch64.h
@@ -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.  */
 


More information about the Gcc-patches mailing list