[Mips] Set mips64r6 as default CPU for MIPS64 Android

Change default CPU for MIPS64 Android. Now it is mips64r6.

Differential Revision: http://reviews.llvm.org/D11294

llvm-svn: 242522
This commit is contained in:
Petar Jovanovic 2015-07-17 12:57:30 +00:00
parent f647202fd5
commit 9fe32cde5c
2 changed files with 5 additions and 1 deletions

View File

@ -941,6 +941,10 @@ void mips::getMipsCPUAndABI(const ArgList &Args, const llvm::Triple &Triple,
DefMips32CPU = "mips32r6"; DefMips32CPU = "mips32r6";
DefMips64CPU = "mips64r6"; DefMips64CPU = "mips64r6";
} }
// MIPS64r6 is the default for Android MIPS64 (mips64el-linux-android).
if (Triple.getEnvironment() == llvm::Triple::Android)
DefMips64CPU = "mips64r6";
// MIPS3 is the default for mips64*-unknown-openbsd. // MIPS3 is the default for mips64*-unknown-openbsd.
if (Triple.getOS() == llvm::Triple::OpenBSD) if (Triple.getOS() == llvm::Triple::OpenBSD)

View File

@ -266,5 +266,5 @@
// RUN: FileCheck -check-prefix=MIPS64EL-ANDROID %s // RUN: FileCheck -check-prefix=MIPS64EL-ANDROID %s
// MIPS64EL-ANDROID: clang // MIPS64EL-ANDROID: clang
// MIPS64EL-ANDROID: "-cc1" // MIPS64EL-ANDROID: "-cc1"
// MIPS64EL-ANDROID: "-target-cpu" "mips64r2" // MIPS64EL-ANDROID: "-target-cpu" "mips64r6"
// MIPS64EL-ANDROID: "-mfloat-abi" "hard" // MIPS64EL-ANDROID: "-mfloat-abi" "hard"