From 2f9bb1627ad6eaa4b520e490be43b7e208e98225 Mon Sep 17 00:00:00 2001 From: Simon Dardis Date: Thu, 15 Sep 2016 13:13:01 +0000 Subject: [PATCH] [mips][ias] Enable IAS by default for N64 on Debian mips64el. 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 llvm-svn: 281607 --- llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp index 5a394fe8..a44a35f 100644 --- a/llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp +++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp @@ -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; } -- 2.7.4