dev-libs/simde: fix usage with -mxop

Bug: https://bugs.gentoo.org/926959
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2024-03-25 08:50:45 -04:00
parent 439ef75c46
commit 46b9fab4b1
2 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
https://bugs.gentoo.org/926959
https://github.com/kovidgoyal/kitty/issues/7222
https://github.com/simd-everywhere/simde/pull/1154
From: "Michael R. Crusoe" <michael.crusoe@gmail.com>
Date: Mon, 25 Mar 2024 10:33:22 +0100
Subject: [PATCH 1/2] x86 xop: fix some native functions
--- a/simde/arm/neon/paddl.h
+++ b/simde/arm/neon/paddl.h
@@ -286,7 +286,7 @@ simde_vpaddlq_u16(simde_uint16x8_t a) {
simde_uint32x4_private r_;
#if defined(SIMDE_X86_XOP_NATIVE)
- r_.sse_m128i = _mm_haddd_epu16(a_.sse_m128i);
+ r_.m128i = _mm_haddd_epu16(a_.m128i);
#elif defined(SIMDE_X86_SSE2_NATIVE)
r_.m128i =
_mm_add_epi32(
--- a/simde/x86/xop.h
+++ b/simde/x86/xop.h
@@ -3727,7 +3727,7 @@ simde_mm256_permute2_pd (simde__m256d a, simde__m256d b, simde__m256i c, const i
SIMDE_LCC_REVERT_DEPRECATED_WARNINGS \
}))
#else
- #define simde_mm256_permute2_pd(a, b, c, imm8) simde_undeprecated_mm256_permute2_pd((a), (b), (c), (imm8))
+ #define simde_mm256_permute2_pd(a, b, c, imm8) _mm256_permute2_pd((a), (b), (c), (imm8))
#endif
#endif
#if defined(SIMDE_X86_XOP_ENABLE_NATIVE_ALIASES)

View File

@@ -20,6 +20,7 @@ RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}"/${PN}-0.7.6-musl.patch
"${FILESDIR}"/${P}-xop.patch
)
src_configure() {