Skip to content

Commit fdeed83

Browse files
committed
Fix a typo in target features
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 llvm-svn: 366276
1 parent 0a8d4df commit fdeed83

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/Driver/ToolChains/Arch/X86.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ void x86::getX86TargetFeatures(const Driver &D, const llvm::Triple &Triple,
135135
if (ArchType == llvm::Triple::x86_64) {
136136
Features.push_back("+sse4.2");
137137
Features.push_back("+popcnt");
138-
Features.push_back("+mcx16");
138+
Features.push_back("+cx16");
139139
} else
140140
Features.push_back("+ssse3");
141141
}

clang/test/Driver/clang-translation.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@
318318
// ANDROID-X86_64: "-target-cpu" "x86-64"
319319
// ANDROID-X86_64: "-target-feature" "+sse4.2"
320320
// ANDROID-X86_64: "-target-feature" "+popcnt"
321-
// ANDROID-X86_64: "-target-feature" "+mcx16"
321+
// ANDROID-X86_64: "-target-feature" "+cx16"
322322

323323
// RUN: %clang -target mips-linux-gnu -### -S %s 2>&1 | \
324324
// RUN: FileCheck -check-prefix=MIPS %s

0 commit comments

Comments
 (0)