diff options
Diffstat (limited to 'src/boost/libs/log/config/x86-ext/avx2.cpp')
-rw-r--r-- | src/boost/libs/log/config/x86-ext/avx2.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/boost/libs/log/config/x86-ext/avx2.cpp b/src/boost/libs/log/config/x86-ext/avx2.cpp new file mode 100644 index 00000000..3ee051f1 --- /dev/null +++ b/src/boost/libs/log/config/x86-ext/avx2.cpp @@ -0,0 +1,20 @@ +/* + * Copyright Andrey Semashev 2007 - 2015. + * Distributed under the Boost Software License, Version 1.0. + * (See accompanying file LICENSE_1_0.txt or copy at + * http://www.boost.org/LICENSE_1_0.txt) + */ + +#include <immintrin.h> + +void pretend_used(__m256i*); + +int main(int, char*[]) +{ + __m256i mm = _mm256_setzero_si256(); + pretend_used(&mm); + mm = _mm256_shuffle_epi8(_mm256_alignr_epi8(mm, mm, 10), mm); + pretend_used(&mm); + _mm256_zeroupper(); + return 0; +} |