Summary: Tested on MacOSX and Linux. For robustness we can go the OpenCV way and add individual c++ files with intrinsics. https://github.com/opencv/opencv/blob/master/cmake/checks/cpu_avx2.cpp Reviewers: sivachandra, abrachet Subscribers: mgorny, MaskRay, tschuett, libc-commits Tags: #libc-project Differential Revision: https://reviews.llvm.org/D74897
9 lines
134 B
C++
9 lines
134 B
C++
#if !defined __AVX__
|
|
#error "missing __AVX__"
|
|
#endif
|
|
#include <immintrin.h>
|
|
int main() {
|
|
(void)_mm256_set1_epi8('0');
|
|
return 0;
|
|
}
|