[PATCH] D11294: [Mips] Set mips64r6 as default CPU for MIPS64 Android

Petar Jovanovic petar.jovanovic at imgtec.com
Fri Jul 17 05:49:04 PDT 2015


petarj created this revision.
petarj added a reviewer: atanasyan.
petarj added a subscriber: cfe-commits.
petarj set the repository for this revision to rL LLVM.
Herald added subscribers: srhines, danalbert, tberghammer.

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

Repository:
  rL LLVM

http://reviews.llvm.org/D11294

Files:
  lib/Driver/Tools.cpp
  test/Driver/clang-translation.c

Index: test/Driver/clang-translation.c
===================================================================
--- test/Driver/clang-translation.c
+++ test/Driver/clang-translation.c
@@ -266,5 +266,5 @@
 // RUN: FileCheck -check-prefix=MIPS64EL-ANDROID %s
 // MIPS64EL-ANDROID: clang
 // MIPS64EL-ANDROID: "-cc1"
-// MIPS64EL-ANDROID: "-target-cpu" "mips64r2"
+// MIPS64EL-ANDROID: "-target-cpu" "mips64r6"
 // MIPS64EL-ANDROID: "-mfloat-abi" "hard"
Index: lib/Driver/Tools.cpp
===================================================================
--- lib/Driver/Tools.cpp
+++ lib/Driver/Tools.cpp
@@ -941,6 +941,10 @@
     DefMips32CPU = "mips32r6";
     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.
   if (Triple.getOS() == llvm::Triple::OpenBSD)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11294.29995.patch
Type: text/x-patch
Size: 955 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150717/4d93c835/attachment.bin>


More information about the cfe-commits mailing list