Skip to content

Conversation

@ajraymond
Copy link
Contributor

Implementing a few functions:

  • simde_mm256_insertf32x4
  • simde_mm256_inserti64x2
  • simde_mm256_mask_abs_epi16
  • simde_mm256_mask_abs_epi32
  • simde_mm256_maskz_abs_epi8
  • simde_mm256_maskz_abs_epi16
  • simde_mm256_maskz_abs_epi32

Test vectors generated on an Intel Cascade Lake CPU:
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ssbd ibrs ibpb stibp ibrs_enhanced fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves arat avx512_vnni md_clear arch_capabilities

Tested on an Intel Cascade Lake CPU with:

$ FLAGS="-march=native" CXXFLAGS="-march=native" meson setup ..
$ meson test --print-errorlogs x86/avx512/*

@mr-c
Copy link
Collaborator

mr-c commented Jan 8, 2026

Congratulations @ajraymond , you've found an emscripten/llvm bug! There are instructions in the error on how to report it. You'll need to reproduce it locally to give them the files they need. Let me know if you want help in reporting, reproducing, making a reduced test case, and/or bisecting to find the offending commit in those projects.

Once you've got an issue opened, I'll adjust the CI to test with the latest stable emscripten release instead of the "tip of tree" (tot, the latest development snapshot).

@mr-c
Copy link
Collaborator

mr-c commented Jan 8, 2026

I can't push to your branch, but you can trigger CI tests using the latest normal release of emscripten with the following commit

From f27d8e6aead215af849961883657974c162f1103 Mon Sep 17 00:00:00 2001
From: "Michael R. Crusoe" <[email protected]>
Date: Thu, 8 Jan 2026 14:31:08 +0100
Subject: [PATCH] gh-actions emscripten: switch off of TOT temporarily

---
 .github/workflows/ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3e1e21c5..ae3bca74 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -228,8 +228,8 @@ jobs:
       run: |
         git clone https://github.com/emscripten-core/emsdk.git /opt/emsdk
         cd /opt/emsdk
-        ./emsdk install tot
-        ./emsdk activate tot
+        ./emsdk install latest  # FIXME, revert to tot
+        ./emsdk activate latest  # FIXME, revert to tot
         source emsdk_env.sh
     - name: Install v8
       run: |
-- 
2.47.3

@ajraymond
Copy link
Contributor Author

Create an issue with emscripten (emscripten-core/emscripten#26060)

@mr-c
Copy link
Collaborator

mr-c commented Jan 9, 2026

Thank you @ajraymond !
I've squashed related commits together and adjusted the commits. Merged as 5b7267a

@mr-c mr-c closed this Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants