Skip to content

Commit

Permalink
Fix a typo in target features
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gburgessiv committed Jul 16, 2019
1 parent 0a8d4df commit fdeed83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clang/lib/Driver/ToolChains/Arch/X86.cpp
Expand Up @@ -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");
}
Expand Down
2 changes: 1 addition & 1 deletion clang/test/Driver/clang-translation.c
Expand Up @@ -318,7 +318,7 @@
// 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
Expand Down

0 comments on commit fdeed83

Please sign in to comment.