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

profiles: Add CPU_FLAGS_PPC=vsx4 for NumPy

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/base/use.mask      | 1 +
 profiles/arch/powerpc/use.mask   | 1 +
 profiles/desc/cpu_flags_ppc.desc | 3 ++-
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/profiles/arch/base/use.mask b/profiles/arch/base/use.mask
index e07bac0b7210..208e12ad32ec 100644
--- a/profiles/arch/base/use.mask
+++ b/profiles/arch/base/use.mask
@@ -137,6 +137,7 @@ cpu_flags_ppc_altivec
 cpu_flags_ppc_vsx
 cpu_flags_ppc_vsx2
 cpu_flags_ppc_vsx3
+cpu_flags_ppc_vsx4
 
 # mips arch specific USE flags
 loongson2f

diff --git a/profiles/arch/powerpc/use.mask b/profiles/arch/powerpc/use.mask
index acb66e942c0f..e09b47334688 100644
--- a/profiles/arch/powerpc/use.mask
+++ b/profiles/arch/powerpc/use.mask
@@ -51,6 +51,7 @@ clang
 -cpu_flags_ppc_vsx
 -cpu_flags_ppc_vsx2
 -cpu_flags_ppc_vsx3
+-cpu_flags_ppc_vsx4
 
 # Incompatible Use Flags
 #

diff --git a/profiles/desc/cpu_flags_ppc.desc b/profiles/desc/cpu_flags_ppc.desc
index 5d3aad787dbd..1b2f6d603d93 100644
--- a/profiles/desc/cpu_flags_ppc.desc
+++ b/profiles/desc/cpu_flags_ppc.desc
@@ -1,7 +1,8 @@
-# Copyright 2020 Gentoo Authors
+# Copyright 2020-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 altivec - Use the AltiVec/VMX instruction set
 vsx - Use the Vector Scalar Extension instruction set (POWER7 and later)
 vsx2 - Use the Vector Scalar Extension v.2 instruction set (POWER8 and later)
 vsx3 - Use the Vector Scalar Extension v.3 instruction set (POWER9 and later)
+vsx4 - Use the Vector Scalar Extension v.4 instruction set (POWER10 and later)

Reply via email to