]> granicus.if.org Git - clang/commitdiff
Fix a typo in target features
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Tue, 16 Jul 2019 22:32:17 +0000 (22:32 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Tue, 16 Jul 2019 22:32:17 +0000 (22:32 +0000)
There was a slight typo in r364352 that ended up causing our backend to
complain on some x86 Android builds. This CL fixes that.

Differential Revision: https://reviews.llvm.org/D64781

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

lib/Driver/ToolChains/Arch/X86.cpp
test/Driver/clang-translation.c

index 2e75039bf0d65e08bc8ef28252b26bfdde5afea0..34be226b69e9806a9c96c8e55113934019953a96 100644 (file)
@@ -135,7 +135,7 @@ void x86::getX86TargetFeatures(const Driver &D, const llvm::Triple &Triple,
     if (ArchType == llvm::Triple::x86_64) {
       Features.push_back("+sse4.2");
       Features.push_back("+popcnt");
-      Features.push_back("+mcx16");
+      Features.push_back("+cx16");
     } else
       Features.push_back("+ssse3");
   }
index 0054535115aad64ea6e6b42df6d3f33504d49f6d..766e7793826925dfd51dd78350ede405336e3d14 100644 (file)
 // ANDROID-X86_64: "-target-cpu" "x86-64"
 // ANDROID-X86_64: "-target-feature" "+sse4.2"
 // ANDROID-X86_64: "-target-feature" "+popcnt"
-// ANDROID-X86_64: "-target-feature" "+mcx16"
+// ANDROID-X86_64: "-target-feature" "+cx16"
 
 // RUN: %clang -target mips-linux-gnu -### -S %s 2>&1 | \
 // RUN: FileCheck -check-prefix=MIPS %s