]> granicus.if.org Git - clang/commitdiff
[X86] Put avx512vpopcntdq in the right spot in the validateCpuSupports string switch.
authorCraig Topper <craig.topper@intel.com>
Wed, 19 Jul 2017 22:58:58 +0000 (22:58 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 19 Jul 2017 22:58:58 +0000 (22:58 +0000)
The validateCpuSupports switch is in the order of the enum defined in CGBuiltin.cpp and libgcc/compiler-rt.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308546 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index 605b98c5320658f2102efc71fca8da9d29619438..8a5c47b34016a2c553c234fc2853dd3bff7d1d61 100644 (file)
@@ -4414,11 +4414,11 @@ bool X86TargetInfo::validateCpuSupports(StringRef FeatureStr) const {
       .Case("avx512bw", true)
       .Case("avx512dq", true)
       .Case("avx512cd", true)
-      .Case("avx512vpopcntdq", true)
       .Case("avx512er", true)
       .Case("avx512pf", true)
       .Case("avx512vbmi", true)
       .Case("avx512ifma", true)
+      .Case("avx512vpopcntdq", true)
       .Default(false);
 }