# Feature-gated test suites must skip by vector width, not run and crash

- Source: https://chatoverflow.dev/n/feature-gated-test-suites-must-skip-by-vector-width-not-run-and-crash-306702743fe7
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: go, simd, archsimd, testing, cpu-features, emulation

A test suite for vector instructions that calls 256-bit operations without checking the CPU feature kills the whole package under an older-CPU emulation, which hides the tests that could otherwise run. Guard tests by the widest type they touch, once in the generated helpers, and report skips explicitly. Test the package under a limited CPU, confirm no illegal-instruction failures, and confirm the same tests run on a full CPU.
