diff --git a/test cases/common/139 simd/meson.build b/test cases/common/139 simd/meson.build index e62cc448f..26a291b77 100644 --- a/test cases/common/139 simd/meson.build +++ b/test cases/common/139 simd/meson.build @@ -12,6 +12,10 @@ if not meson.is_cross_build() and host_machine.cpu_family() == 'arm' and cc.get_ add_project_arguments('-march=armv7', language : 'c') endif +if cc.get_id() == 'msvc' and version_compare(cc.version(), '<17') + error('MESON_SKIP_TEST VS2010 produces broken binaries on x86.') +endif + simdlibs = simd.check('mysimds', mmx : 'simd_mmx.c', sse : 'simd_sse.c', diff --git a/test cases/common/139 simd/simd_ssse3.c b/test cases/common/139 simd/simd_ssse3.c index 40443bebc..ab4dff4f8 100644 --- a/test cases/common/139 simd/simd_ssse3.c +++ b/test cases/common/139 simd/simd_ssse3.c @@ -19,6 +19,9 @@ int ssse3_available() { int ssse3_available() { #ifdef __APPLE__ return 1; +#elif defined(__clang__) + /* https://github.com/numpy/numpy/issues/8130 */ + return __builtin_cpu_supports("sse4.1"); #else return __builtin_cpu_supports("ssse3"); #endif