From: LLVM Packaging Team Date: Fri, 18 Sep 2020 09:47:25 +0000 (+0100) Subject: mips-force-nomadd4 X-Git-Tag: archive/raspbian/1%7.0.1-8+rpi3+deb10u2^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2d453939161d5bdd3d45128858935e38e0bac48e;p=llvm-toolchain-7.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 11e9ac914..c666eea7d 100644 --- a/clang/lib/Basic/Targets/Mips.h +++ b/clang/lib/Basic/Targets/Mips.h @@ -306,6 +306,7 @@ public: FloatABI = HardFloat; DspRev = NoDSP; HasFP64 = isFP64Default(); + DisableMadd4 = true; for (const auto &Feature : Features) { if (Feature == "+single-float")