From: LLVM Packaging Team Date: Tue, 7 Jul 2020 16:18:00 +0000 (+0100) Subject: mips-force-nomadd4 X-Git-Tag: archive/raspbian/1%9.0.1-13+rpi1^2~30 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6690318256ee3a23b3c32a0f3e00553edf74b86d;p=llvm-toolchain-9.git mips-force-nomadd4 The MIPS port aims to support the Loongson 3 family of CPUs in addition of the other MIPS CPUs. On the Loongson 3 family the MADD4 instructions are fused, while they are not fused on the other MIPS CPUs. In order to support both, we have to disabled those instructions. For that, the patch below basically corresponds to the --with-madd4=no used on the GCC side. Gbp-Pq: Name mips-force-nomadd4.diff --- diff --git a/clang/lib/Basic/Targets/Mips.h b/clang/lib/Basic/Targets/Mips.h index 474cda84a..8b8f9236a 100644 --- a/clang/lib/Basic/Targets/Mips.h +++ b/clang/lib/Basic/Targets/Mips.h @@ -312,6 +312,7 @@ public: FloatABI = HardFloat; DspRev = NoDSP; FPMode = isFP64Default() ? FP64 : FPXX; + DisableMadd4 = true; for (const auto &Feature : Features) { if (Feature == "+single-float")