Fix bug where "avx-x2" target would cause AVX1.1 to be used.

This commit is contained in:
Matt Pharr
2012-06-12 13:37:38 -07:00
parent d6c6f95373
commit 40a295e951

View File

@@ -299,7 +299,7 @@ Target::GetTarget(const char *arch, const char *cpu, const char *isa,
t->maskBitCount = 32;
}
else if (!strcasecmp(isa, "avx-x2") || !strcasecmp(isa, "avx1-x2")) {
t->isa = Target::AVX11;
t->isa = Target::AVX;
t->nativeVectorWidth = 8;
t->vectorWidth = 16;
t->attributes = "+avx,+popcnt,+cmov";