From 84e72c6334f1a8a8177d65ea8a25a9a887ea69cf 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 --- lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp b/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp index 5a394fe8d6b..a44a35f49e5 100644 --- a/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp +++ b/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; }