From f4040a42bf2ce5e3ee54047c88ee7bb6b29f3044 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 19 Jul 2017 22:58:58 +0000 Subject: [PATCH] [X86] Put avx512vpopcntdq in the right spot in the validateCpuSupports string switch. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 605b98c532..8a5c47b340 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -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); } -- 2.40.0