From 75ebd3a0d135fb58095362c7f6432c779f4745b2 Mon Sep 17 00:00:00 2001 From: azusayamaguchi Date: Fri, 21 Oct 2016 22:34:29 +0100 Subject: [PATCH] Typo fixes and rotate for CLANG --- lib/simd/Grid_avx512.h | 12 +++++++++++- lib/simd/Intel512avx.h | 2 +- lib/simd/Intel512common.h | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/lib/simd/Grid_avx512.h b/lib/simd/Grid_avx512.h index 821898d9..45d6d988 100644 --- a/lib/simd/Grid_avx512.h +++ b/lib/simd/Grid_avx512.h @@ -41,6 +41,16 @@ Author: paboyle namespace Grid{ namespace Optimization { + + union u512f { + __m512 v; + float f[16]; + }; + + union u512d { + __m512d v; + double f[8]; + }; struct Vsplat{ //Complex float @@ -361,7 +371,7 @@ namespace Optimization { // Some Template specialization // Hack for CLANG until mm512_reduce_add_ps etc... are implemented in GCC and Clang releases -#undef GNU_CLANG_COMPILER +#define GNU_CLANG_COMPILER #ifdef GNU_CLANG_COMPILER //Complex float Reduce template<> diff --git a/lib/simd/Intel512avx.h b/lib/simd/Intel512avx.h index cdd54a33..19157db4 100644 --- a/lib/simd/Intel512avx.h +++ b/lib/simd/Intel512avx.h @@ -53,7 +53,7 @@ Author: paboyle #define ZMULMEM2SPd(O,P,tmp,B,C,Briir,Biirr,Criir,Ciirr)\ VSHUFMEMd(O,P,tmp) \ - VMULMEMd(O,P,B,Biirr) \ + VMULMEMd(O,P,B,Biirr) \ VMULMEMd(O,P,C,Ciirr) \ VMULd(tmp,B,Briir) \ VMULd(tmp,C,Criir) diff --git a/lib/simd/Intel512common.h b/lib/simd/Intel512common.h index dbfb30c2..cfa20c26 100644 --- a/lib/simd/Intel512common.h +++ b/lib/simd/Intel512common.h @@ -37,7 +37,7 @@ Author: paboyle // Opcodes common //////////////////////////////////////////////////////////////////////////////////////////////////// #define MASK_REGS \ - __asm__ ("mov $0xAAAA, %%eax \n"\ + __asm__ ("mov $0xAAAA, %%eax \n"\ "kmovw %%eax, %%k6 \n"\ "mov $0x5555, %%eax \n"\ "kmovw %%eax, %%k7 \n" : : : "%eax");