Welcome to mirror list, hosted at ThFree Co, Russian Federation.

compile_test_avx2.cc - github.com/marian-nmt/intgemm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 794983bf78c202dc3c28e60eafa43ca4e92f6c39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Some compilers don't have AVX512BW support.  Test for them.
#include <immintrin.h>

#if defined(_MSC_VER)
#define INTGEMM_AVX2
#else
#define INTGEMM_AVX2 __attribute__ ((target ("avx2")))
#endif

INTGEMM_AVX2 int Test() {
  __m256i value = _mm256_set1_epi32(1);
  value = _mm256_abs_epi8(value);
  return *(int*)&value;
}

int main() {
}