commit:     57feb62e657fcaacd840c3055237489513d9a171
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 27 17:22:53 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Aug 13 12:26:38 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57feb62e

profiles: Add additional CPU_FLAGS_ARM for NumPy

See-also: https://github.com/projg2/cpuid2cpuflags/pull/34
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
Part-of: https://github.com/gentoo/gentoo/pull/43190
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 profiles/arch/arm/23.0-armv7a_hf/use.mask        | 3 ++-
 profiles/arch/arm/23.0-armv7a_sf/use.mask        | 3 ++-
 profiles/arch/arm/armv7a/use.mask                | 3 ++-
 profiles/arch/arm64/use.mask                     | 3 +++
 profiles/arch/base/use.mask                      | 7 ++++++-
 profiles/desc/cpu_flags_arm.desc                 | 6 +++++-
 profiles/prefix/darwin/macos/arch/arm64/use.mask | 6 +++++-
 7 files changed, 25 insertions(+), 6 deletions(-)

diff --git a/profiles/arch/arm/23.0-armv7a_hf/use.mask 
b/profiles/arch/arm/23.0-armv7a_hf/use.mask
index fb779ca1d2e9..b1bb8d71e601 100644
--- a/profiles/arch/arm/23.0-armv7a_hf/use.mask
+++ b/profiles/arch/arm/23.0-armv7a_hf/use.mask
@@ -1,4 +1,4 @@
-# Copyright 2011-2022 Gentoo Authors
+# Copyright 2011-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # Unmask armv7 specific USE flags
@@ -9,6 +9,7 @@
 
 -cpu_flags_arm_edsp
 -cpu_flags_arm_neon
+-cpu_flags_arm_neon-fp16
 -cpu_flags_arm_thumb
 -cpu_flags_arm_thumb2
 -cpu_flags_arm_vfp

diff --git a/profiles/arch/arm/23.0-armv7a_sf/use.mask 
b/profiles/arch/arm/23.0-armv7a_sf/use.mask
index fb779ca1d2e9..b1bb8d71e601 100644
--- a/profiles/arch/arm/23.0-armv7a_sf/use.mask
+++ b/profiles/arch/arm/23.0-armv7a_sf/use.mask
@@ -1,4 +1,4 @@
-# Copyright 2011-2022 Gentoo Authors
+# Copyright 2011-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # Unmask armv7 specific USE flags
@@ -9,6 +9,7 @@
 
 -cpu_flags_arm_edsp
 -cpu_flags_arm_neon
+-cpu_flags_arm_neon-fp16
 -cpu_flags_arm_thumb
 -cpu_flags_arm_thumb2
 -cpu_flags_arm_vfp

diff --git a/profiles/arch/arm/armv7a/use.mask 
b/profiles/arch/arm/armv7a/use.mask
index fb779ca1d2e9..b1bb8d71e601 100644
--- a/profiles/arch/arm/armv7a/use.mask
+++ b/profiles/arch/arm/armv7a/use.mask
@@ -1,4 +1,4 @@
-# Copyright 2011-2022 Gentoo Authors
+# Copyright 2011-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # Unmask armv7 specific USE flags
@@ -9,6 +9,7 @@
 
 -cpu_flags_arm_edsp
 -cpu_flags_arm_neon
+-cpu_flags_arm_neon-fp16
 -cpu_flags_arm_thumb
 -cpu_flags_arm_thumb2
 -cpu_flags_arm_vfp

diff --git a/profiles/arch/arm64/use.mask b/profiles/arch/arm64/use.mask
index f4dbdc9e5f43..7636800a185c 100644
--- a/profiles/arch/arm64/use.mask
+++ b/profiles/arch/arm64/use.mask
@@ -69,7 +69,10 @@ cpu_flags_arm_neon
 -cpu_flags_arm_v8
 
 -cpu_flags_arm_aes
+-cpu_flags_arm_asimd
 -cpu_flags_arm_asimddp
+-cpu_flags_arm_asimdfhm
+-cpu_flags_arm_asimdhp
 -cpu_flags_arm_crc32
 -cpu_flags_arm_edsp
 -cpu_flags_arm_i8mm

diff --git a/profiles/arch/base/use.mask b/profiles/arch/base/use.mask
index 8f47245a50cf..e07bac0b7210 100644
--- a/profiles/arch/base/use.mask
+++ b/profiles/arch/base/use.mask
@@ -157,14 +157,19 @@ cpu_flags_arm_v5
 cpu_flags_arm_v6
 cpu_flags_arm_v7
 cpu_flags_arm_v8
+
 cpu_flags_arm_aes
+cpu_flags_arm_asimd
 cpu_flags_arm_asimddp
+cpu_flags_arm_asimdfhm
+cpu_flags_arm_asimdhp
 cpu_flags_arm_crc32
 cpu_flags_arm_edsp
 cpu_flags_arm_i8mm
 cpu_flags_arm_iwmmxt
 cpu_flags_arm_iwmmxt2
 cpu_flags_arm_neon
+cpu_flags_arm_neon-fp16
 cpu_flags_arm_sha1
 cpu_flags_arm_sha2
 cpu_flags_arm_sm4
@@ -173,9 +178,9 @@ cpu_flags_arm_sve2
 cpu_flags_arm_thumb
 cpu_flags_arm_thumb2
 cpu_flags_arm_vfp
+cpu_flags_arm_vfp-d32
 cpu_flags_arm_vfpv3
 cpu_flags_arm_vfpv4
-cpu_flags_arm_vfp-d32
 
 # nVidia XvMC requires nvidia-drivers/nvidia-legacy-drivers
 nvidia

diff --git a/profiles/desc/cpu_flags_arm.desc b/profiles/desc/cpu_flags_arm.desc
index ad687c48c6ba..7cd649b8be46 100644
--- a/profiles/desc/cpu_flags_arm.desc
+++ b/profiles/desc/cpu_flags_arm.desc
@@ -2,13 +2,17 @@
 # Distributed under the terms of the GNU General Public License v2
 
 aes - Use the AES cryptography instruction set
+asimd - Use the Advanced SIMD instructions (NEON with ARMv8 extensions)
 asimddp - Use the Advanced SIMD dot product instructions
+asimdfhm - Use the Advanced SIMD single- & half-precision multiply
+asimdhp - Use the Advanced SIMD half-precision & vector arithmetics
 crc32 - Use the CRC32 instruction set
 edsp - Use the enhanced DSP instructions (ARMv*E and ARMv6+)
 i8mm - Use the AArch64 Int8 matrix multiplication instructions
 iwmmxt - Use the iwMMXt instruction set
 iwmmxt2 - Use the iwMMXt2 instruction set
-neon - Use the NEON (ASIMD) instruction set
+neon - Use the NEON instruction set
+neon-fp16 - Use the NEON intruction set with half word loads / store support
 sha1 - Use the SHA-1 cryptography instruction set
 sha2 - Use the SHA-2 cryptography instruction set
 sm4 - Use the SM4 cryptography instruction set

diff --git a/profiles/prefix/darwin/macos/arch/arm64/use.mask 
b/profiles/prefix/darwin/macos/arch/arm64/use.mask
index b5fa6d965845..49cde2534d92 100644
--- a/profiles/prefix/darwin/macos/arch/arm64/use.mask
+++ b/profiles/prefix/darwin/macos/arch/arm64/use.mask
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # Unmask the flag corresponding to the default ABI
@@ -13,10 +13,14 @@
 -cpu_flags_arm_v8
 
 -cpu_flags_arm_aes
+-cpu_flags_arm_asimd
 -cpu_flags_arm_asimddp
+-cpu_flags_arm_asimdfhm
+-cpu_flags_arm_asimdhp
 -cpu_flags_arm_crc32
 -cpu_flags_arm_edsp
 -cpu_flags_arm_i8mm
+-cpu_flags_arm_neon-fp16
 -cpu_flags_arm_sha1
 -cpu_flags_arm_sha2
 -cpu_flags_arm_sm4

Reply via email to