Commit 2dd9c4f
fix(simd): gate all simd_avx512 test modules behind target_feature = avx512f
The 5 test modules in simd_avx512.rs (bf16_tests, f16_tests,
u8x64_rasterizer_tests, tier3_tests, int_simd_tests) call raw AVX-512
intrinsics directly. On CI/Cloud VMs running x86-64-v3 (AVX2 only),
movemask_all_high and movemask_all_zero SIGILL because _mm512_movepi8_mask
requires AVX-512BW hardware.
These tests should only compile and run on consumer x86-64-v4 hardware.
On v3, the simd.rs LazyLock polyfill dispatches to simd_avx2.rs emulations
which have matching scalar fallbacks for every 512-bit operation.
Changed: #[cfg(test)] → #[cfg(all(test, target_feature = "avx512f"))]
on all 5 test modules.
Test counts: 1776 pass / 0 fail / 36 ignored (non-AVX-512 VM)
Previously: 1819 tests, 2 SIGILL failures blocking 570 remaining tests
Co-authored-by: AdaWorldAPI <AdaWorldAPI@users.noreply.github.com>1 parent 69b7c2d commit 2dd9c4f
2 files changed
Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2619 | 2619 | | |
2620 | 2620 | | |
2621 | 2621 | | |
2622 | | - | |
| 2622 | + | |
2623 | 2623 | | |
2624 | 2624 | | |
2625 | 2625 | | |
| |||
3260 | 3260 | | |
3261 | 3261 | | |
3262 | 3262 | | |
3263 | | - | |
| 3263 | + | |
3264 | 3264 | | |
3265 | 3265 | | |
3266 | 3266 | | |
| |||
3351 | 3351 | | |
3352 | 3352 | | |
3353 | 3353 | | |
3354 | | - | |
| 3354 | + | |
3355 | 3355 | | |
3356 | 3356 | | |
3357 | 3357 | | |
| |||
3467 | 3467 | | |
3468 | 3468 | | |
3469 | 3469 | | |
3470 | | - | |
| 3470 | + | |
3471 | 3471 | | |
3472 | 3472 | | |
3473 | 3473 | | |
| |||
3590 | 3590 | | |
3591 | 3591 | | |
3592 | 3592 | | |
3593 | | - | |
| 3593 | + | |
3594 | 3594 | | |
3595 | 3595 | | |
3596 | 3596 | | |
| |||
0 commit comments