[med-svn] [Git][med-team/simde][master] Cherry-pick patch from upstream to fix test error with dpkg- buildflags.

Michael R. Crusoe (@crusoe) gitlab at salsa.debian.org
Sun Feb 22 08:41:47 GMT 2026



Michael R. Crusoe pushed to branch master at Debian Med / simde


Commits:
8ad22233 by Michael R. Crusoe at 2026-02-22T09:40:11+01:00
Cherry-pick patch from upstream to fix test error with dpkg- buildflags.

- - - - -


5 changed files:

- debian/changelog
- + debian/patches/0003-x86-avx512-permutexvar-implement-mm256_permutexvar_p.patch
- debian/patches/munit
- debian/patches/pkgconfig
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -5,6 +5,8 @@ simde (0.8.4~rc2-1) UNRELEASED; urgency=medium
   * Standards-Version: 4.7.3 (routine-update)
   * Remove trailing whitespace in debian/changelog (routine-update)
   * Removed three patches applied upstream.
+  * Cherry-pick patch from upstream to fix test error with dpkg-
+    buildflags.
 
  -- Michael R. Crusoe <crusoe at debian.org>  Sat, 21 Feb 2026 16:22:05 +0100
 


=====================================
debian/patches/0003-x86-avx512-permutexvar-implement-mm256_permutexvar_p.patch
=====================================
@@ -0,0 +1,38 @@
+From: "Michael R. Crusoe" <michael.crusoe at gmail.com>
+Date: Sat, 21 Feb 2026 18:54:36 +0100
+Forwarded: https://github.com/simd-everywhere/simde/pull/1390
+Subject: x86 avx512 permutexvar: implement mm256_permutexvar_pd directly,
+ without casting
+
+gcc (at least version, and currently through version 16.0) with both
+"-O2" and "-fstack-protector-strong" produces incorrect results without
+this fix.
+---
+ simde/x86/avx512/permutexvar.h | 14 +++++++++++++-
+ 1 file changed, 13 insertions(+), 1 deletion(-)
+
+diff --git a/simde/x86/avx512/permutexvar.h b/simde/x86/avx512/permutexvar.h
+index 1b4bf7a..4975009 100644
+--- a/simde/x86/avx512/permutexvar.h
++++ b/simde/x86/avx512/permutexvar.h
+@@ -530,7 +530,19 @@ simde_mm256_permutexvar_pd (simde__m256i idx, simde__m256d a) {
+   #if defined(SIMDE_X86_AVX512F_NATIVE) && defined(SIMDE_X86_AVX512VL_NATIVE)
+     return _mm256_permutexvar_pd(idx, a);
+   #else
+-    return simde_mm256_castsi256_pd(simde_mm256_permutexvar_epi64(idx, simde_mm256_castpd_si256(a)));
++    simde__m256i_private idx_ = simde__m256i_to_private(idx);
++    simde__m256d_private
++      a_ = simde__m256d_to_private(a),
++      r_;
++
++    #if !defined(__INTEL_COMPILER)
++      SIMDE_VECTORIZE
++    #endif
++    for (size_t i = 0 ; i < (sizeof(r_.f64) / sizeof(r_.f64[0])) ; i++) {
++      r_.f64[i] = a_.f64[idx_.i64[i] & 3];
++    }
++
++    return simde__m256d_from_private(r_);
+   #endif
+ }
+ #if defined(SIMDE_X86_AVX512F_ENABLE_NATIVE_ALIASES) || defined(SIMDE_X86_AVX512VL_ENABLE_NATIVE_ALIASES)


=====================================
debian/patches/munit
=====================================
@@ -1,11 +1,22 @@
-Author: Evan Nemerson <evan at nemerson.com>
-Description: Upstream dependency
+From: Evan Nemerson <evan at nemerson.com>
+Date: Fri, 6 Dec 2019 19:14:48 +0100
+Subject: Upstream dependency
+
 Forwarded: not-needed
 
 Not worth separately packaging yet: rather small and not used anywhere else
+---
+ test/munit/munit.c | 2055 ++++++++++++++++++++++++++++++++++++++++++++++++++++
+ test/munit/munit.h |  535 ++++++++++++++
+ 2 files changed, 2590 insertions(+)
+ create mode 100644 test/munit/munit.c
+ create mode 100644 test/munit/munit.h
 
+diff --git a/test/munit/munit.c b/test/munit/munit.c
+new file mode 100644
+index 0000000..00ede07
 --- /dev/null
-+++ simde/test/munit/munit.c
++++ b/test/munit/munit.c
 @@ -0,0 +1,2055 @@
 +/* Copyright (c) 2013-2018 Evan Nemerson <evan at nemerson.com>
 + *
@@ -2062,8 +2073,11 @@ Not worth separately packaging yet: rather small and not used anywhere else
 +                 int argc, char* const argv[MUNIT_ARRAY_PARAM(argc + 1)]) {
 +  return munit_suite_main_custom(suite, user_data, argc, argv, NULL);
 +}
+diff --git a/test/munit/munit.h b/test/munit/munit.h
+new file mode 100644
+index 0000000..6897810
 --- /dev/null
-+++ simde/test/munit/munit.h
++++ b/test/munit/munit.h
 @@ -0,0 +1,535 @@
 +/* µnit Testing Framework
 + * Copyright (c) 2013-2017 Evan Nemerson <evan at nemerson.com>


=====================================
debian/patches/pkgconfig
=====================================
@@ -1,12 +1,19 @@
-Author: Michael R. Crusoe <crusoe at debian.org>
-Description: Add the OpenMP SIMD flags automatically
+From: "Michael R. Crusoe" <crusoe at debian.org>
+Date: Sat, 6 May 2023 14:41:20 +0200
+Subject: Add the OpenMP SIMD flags automatically
+
 Forwarded: not-needed
 
 These are supported by both GCC 4.9+ and Clang 6+
+---
+ meson.build | 1 +
+ 1 file changed, 1 insertion(+)
 
---- simde.orig/meson.build
-+++ simde/meson.build
-@@ -557,6 +557,7 @@
+diff --git a/meson.build b/meson.build
+index eada604..6de740b 100644
+--- a/meson.build
++++ b/meson.build
+@@ -557,6 +557,7 @@ if not meson.is_subproject()
      version : meson.project_version(),
      name : 'SIMDe',
      filebase : 'simde',


=====================================
debian/patches/series
=====================================
@@ -1,2 +1,3 @@
 munit
 pkgconfig
+0003-x86-avx512-permutexvar-implement-mm256_permutexvar_p.patch



View it on GitLab: https://salsa.debian.org/med-team/simde/-/commit/8ad22233e7d364d7353543a73505f066d495a0ac

-- 
View it on GitLab: https://salsa.debian.org/med-team/simde/-/commit/8ad22233e7d364d7353543a73505f066d495a0ac
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/20260222/2d3560ca/attachment-0001.htm>


More information about the debian-med-commit mailing list