mirror of
https://github.com/opencv/opencv.git
synced 2024-11-23 18:50:21 +08:00
CPU dispatching: additional AVX-512 check for mingw-w64
This commit is contained in:
parent
c729fbd652
commit
f0c0e0c6fa
@ -3,6 +3,9 @@
|
||||
void test()
|
||||
{
|
||||
__m512i zmm = _mm512_setzero_si512();
|
||||
#if defined __GNUC__ && defined __x86_64__
|
||||
asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
#error "AVX512 is not supported"
|
||||
|
@ -7,6 +7,9 @@ void test()
|
||||
__m256i b = _mm256_abs_epi64(a); // VL
|
||||
__m512i c = _mm512_abs_epi8(zmm); // BW
|
||||
__m512i d = _mm512_broadcast_i32x8(b); // DQ
|
||||
#if defined __GNUC__ && defined __x86_64__
|
||||
asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
#error "AVX512-SKX is not supported"
|
||||
|
Loading…
Reference in New Issue
Block a user