]> granicus.if.org Git - clang/commitdiff
[mips][ias] Enable IAS by default for N64 on Debian mips64el.
authorSimon Dardis <simon.dardis@imgtec.com>
Thu, 15 Sep 2016 14:01:55 +0000 (14:01 +0000)
committerSimon Dardis <simon.dardis@imgtec.com>
Thu, 15 Sep 2016 14:01:55 +0000 (14:01 +0000)
Unfortunately we can't enable it for all N64 because it is not yet possible to
distinguish N32 from N64 from the triple on other environments.

N64 has been confirmed to produce identical (within reason) objects to GAS
during stage 2 of compiler recursion on N64-abi Fedora. Unfortunately,
Fedora's triples do not distinguish N32 from N64 so I can't enable it by
default there. I'm currently repeating this testing for Debian mips64el but
it's very unlikely to produce a different result.

Patch by: Daniel Sanders

Reviewers: sdardis

Differential Review: https://reviews.llvm.org/D22679

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

lib/Driver/ToolChains.cpp

index 3d5183d46e3f2fcb479cd90e7b4505f64a9bdb90..67f165c18bb2de649871bc7be0dc558bbf9d9f36 100644 (file)
@@ -2778,6 +2778,13 @@ bool Generic_GCC::IsIntegratedAssemblerDefault() const {
   case llvm::Triple::mips:
   case llvm::Triple::mipsel:
     return true;
+  case llvm::Triple::mips64:
+  case llvm::Triple::mips64el:
+    // Enabled for Debian mips64/mips64el only. Other targets are unable to
+    // distinguish N32 from N64.
+    if (getTriple().getEnvironment() == llvm::Triple::GNUABI64)
+      return true;
+    return false;
   default:
     return false;
   }