addded avxh with vectorWidth=4 support, use --target=avxh to enable it

This commit is contained in:
egaburov
2013-09-11 12:58:02 +02:00
parent 582cfe55b6
commit 9c79d4d182
5 changed files with 653 additions and 1 deletions

View File

@@ -446,6 +446,15 @@ Target::Target(const char *arch, const char *cpu, const char *isa, bool pic) :
this->m_maskingIsFree = false;
this->m_maskBitCount = 32;
}
else if (!strcasecmp(isa, "avxh") ) {
fprintf(stderr, " ISA is avxh \n");
this->m_isa = Target::AVX;
this->m_nativeVectorWidth = 4;
this->m_vectorWidth = 4;
this->m_attributes = "+avx,+popcnt,+cmov";
this->m_maskingIsFree = false;
this->m_maskBitCount = 32;
}
else if (!strcasecmp(isa, "avx-x2") ||
!strcasecmp(isa, "avx1-x2") ||
!strcasecmp(isa, "avx1-i32x16")) {