[PATCH][Binutils]AArch64 Enable FP16 by default for Armv9-A.

Tamar Christina tamar.christina@arm.com
Mon May 16 16:10:11 GMT 2022


Hi All,

In Armv9-A SVE is mandatory, and for SVE FP16 is mandatory.  This fixes a disconnect
between GCC and binutils where GCC has FP16 on by default and gas doesn't.

build on native hardware and regtested on aarch64-none-linux-gnu and no issues.

Ok for master? and for backport to binutils-2.38?

Thanks,
Tamar

include/ChangeLog:

2022-05-16  Tamar Christina  <tamar.christina@arm.com>

	* opcode/aarch64.h (AARCH64_ARCH_V9_FEATURES): Add AARCH64_FEATURE_F16.

--- inline copy of patch -- 
diff --git a/include/opcode/aarch64.h b/include/opcode/aarch64.h
index a4912930c8f1e564bec6ec46a649ac1205093bd1..8fe27900cba3e897880a3966cc2a17e89dbdf018 100644
--- a/include/opcode/aarch64.h
+++ b/include/opcode/aarch64.h
@@ -140,6 +140,7 @@ typedef uint32_t aarch64_insn;
 					 | AARCH64_FEATURE_HBC)
 
 #define AARCH64_ARCH_V9_FEATURES	(AARCH64_FEATURE_V9		\
+					 | AARCH64_FEATURE_F16          \
 					 | AARCH64_FEATURE_SVE		\
 					 | AARCH64_FEATURE_SVE2)
 #define AARCH64_ARCH_V9_1_FEATURES	(AARCH64_ARCH_V8_6_FEATURES)




-- 
-------------- next part --------------
diff --git a/include/opcode/aarch64.h b/include/opcode/aarch64.h
index a4912930c8f1e564bec6ec46a649ac1205093bd1..8fe27900cba3e897880a3966cc2a17e89dbdf018 100644
--- a/include/opcode/aarch64.h
+++ b/include/opcode/aarch64.h
@@ -140,6 +140,7 @@ typedef uint32_t aarch64_insn;
 					 | AARCH64_FEATURE_HBC)
 
 #define AARCH64_ARCH_V9_FEATURES	(AARCH64_FEATURE_V9		\
+					 | AARCH64_FEATURE_F16          \
 					 | AARCH64_FEATURE_SVE		\
 					 | AARCH64_FEATURE_SVE2)
 #define AARCH64_ARCH_V9_1_FEATURES	(AARCH64_ARCH_V8_6_FEATURES)





More information about the Binutils mailing list