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

N64 has been confirmed to produce identical (within reason) objects to GAS
during stage 2 of compiler recursion on N64-abit 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/D22678

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

lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp

index 5a394fe8d6bc480b05afb0ff351a2e4887aed225..a44a35f49e5fca3d20ed5db8f5fb517e28400000 100644 (file)
@@ -59,4 +59,8 @@ MipsMCAsmInfo::MipsMCAsmInfo(const Triple &TheTriple) {
   if (TheTriple.getArch() == Triple::mips ||
       TheTriple.getArch() == Triple::mipsel)
     UseIntegratedAssembler = true;
+
+  // Enable IAS by default for Debian mips64/mips64el.
+  if (TheTriple.getEnvironment() == Triple::GNUABI64)
+    UseIntegratedAssembler = true;
 }