[med-svn] [Git][med-team/simde][master] From zhangdandan <zhangdandan at loongson.cn>, fix another loong64 related build...
Gianfranco Costamagna (@locutusofborg)
gitlab at salsa.debian.org
Mon Mar 10 22:03:52 GMT 2025
Gianfranco Costamagna pushed to branch master at Debian Med / simde
Commits:
ea1ac89b by Gianfranco Costamagna at 2025-03-10T23:02:41+01:00
>From zhangdandan <zhangdandan at loongson.cn>, fix another loong64 related build failure (Closes: #1100017)
- - - - -
3 changed files:
- debian/changelog
- debian/patches/series
- + debian/patches/simde-fix-loongarch64-gcc-build-failure.patch
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+simde (0.8.2-3) unstable; urgency=medium
+
+ * Team upload.
+ [ zhangdandan <zhangdandan at loongson.cn> ]
+ * Apply upstream PR: #1287 to fix another loongarch64 related failure of
+ reverse-dependencies (Closes: #1100017)
+
+ -- Gianfranco Costamagna <locutusofborg at debian.org> Mon, 10 Mar 2025 23:01:38 +0100
+
simde (0.8.2-2) unstable; urgency=medium
* Team upload.
=====================================
debian/patches/series
=====================================
@@ -2,3 +2,4 @@ munit
pkgconfig
simde-fix-type-convert-error-for-LSX.patch
simde-add-LSX-support-for-sse2-header-file.patch
+simde-fix-loongarch64-gcc-build-failure.patch
=====================================
debian/patches/simde-fix-loongarch64-gcc-build-failure.patch
=====================================
@@ -0,0 +1,32 @@
+Origin: https://github.com/simd-everywhere/simde/pull/1287
+From a8fbd9d341038e12aba88c7fb2b282e58a168894 Mon Sep 17 00:00:00 2001
+From: jinbo <jinbo at loongson.cn>
+Date: Thu, 6 Mar 2025 14:42:24 +0800
+Subject: [PATCH] x86 sse2 for loongarch: fix GCC build failure
+
+---
+ simde/x86/sse2.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/simde/x86/sse2.h b/simde/x86/sse2.h
+index 8a32dc4ea..c3fc42f1b 100644
+--- a/simde/x86/sse2.h
++++ b/simde/x86/sse2.h
+@@ -1344,7 +1344,7 @@ simde_mm_bslli_si128 (simde__m128i a, const int imm8)
+ #define simde_mm_bslli_si128(a, imm8) _mm_slli_si128(a, imm8)
+ #elif defined(SIMDE_LOONGARCH_LSX_NATIVE)
+ #define simde_mm_bslli_si128(a, imm8) \
+- (((imm8)<=0) ? (a) : (((imm8)>15) ? simde_mm_setzero_si128() : simde__m128i_from_lsx_i8((v16i8)__lsx_vbsll_v(simde__m128i_to_private(a).lsx_i64, (imm8)))))
++ (((imm8)<=0) ? (simde__m128i)(a) : (((imm8)>15) ? simde_mm_setzero_si128() : simde__m128i_from_lsx_i8((v16i8)__lsx_vbsll_v(simde__m128i_to_private(a).lsx_i64, (imm8)))))
+ #elif defined(SIMDE_ARM_NEON_A32V7_NATIVE) && !defined(__clang__)
+ #define simde_mm_bslli_si128(a, imm8) \
+ simde__m128i_from_neon_i8(((imm8) <= 0) ? simde__m128i_to_neon_i8(a) : (((imm8) > 15) ? (vdupq_n_s8(0)) : (vextq_s8(vdupq_n_s8(0), simde__m128i_to_neon_i8(a), 16 - (imm8)))))
+@@ -1442,7 +1442,7 @@ simde_mm_bsrli_si128 (simde__m128i a, const int imm8)
+ #define simde_mm_bsrli_si128(a, imm8) _mm_srli_si128(a, imm8)
+ #elif defined(SIMDE_LOONGARCH_LSX_NATIVE)
+ #define simde_mm_bsrli_si128(a, imm8) \
+- (((imm8)<=0) ? (a) : (((imm8)>15) ? simde_mm_setzero_si128() : simde__m128i_from_lsx_i8((v16i8)__lsx_vbsrl_v(simde__m128i_to_private(a).lsx_i64, (imm8)))))
++ (((imm8)<=0) ? (simde__m128i)(a) : (((imm8)>15) ? simde_mm_setzero_si128() : simde__m128i_from_lsx_i8((v16i8)__lsx_vbsrl_v(simde__m128i_to_private(a).lsx_i64, (imm8)))))
+ #elif defined(SIMDE_ARM_NEON_A32V7_NATIVE) && !defined(__clang__)
+ #define simde_mm_bsrli_si128(a, imm8) \
+ simde__m128i_from_neon_i8(((imm8 < 0) || (imm8 > 15)) ? vdupq_n_s8(0) : (vextq_s8(simde__m128i_to_private(a).neon_i8, vdupq_n_s8(0), ((imm8 & 15) != 0) ? imm8 : (imm8 & 15))))
View it on GitLab: https://salsa.debian.org/med-team/simde/-/commit/ea1ac89b0f79c433cbd64b0d628bdc61103a1f25
--
View it on GitLab: https://salsa.debian.org/med-team/simde/-/commit/ea1ac89b0f79c433cbd64b0d628bdc61103a1f25
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20250310/b0c39d85/attachment-0001.htm>
More information about the debian-med-commit
mailing list