From: LLVM Packaging Team Date: Wed, 30 Nov 2022 15:15:42 +0000 (+0000) Subject: mips-force-nomadd4 X-Git-Tag: archive/raspbian/1%16.0.6-15+rpi1~4^2^2~42 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2ae20942af6cce1b4d2b5505ecf3390778dfd935;p=llvm-toolchain-16.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: Topic mips Gbp-Pq: Name mips-force-nomadd4.patch --- diff --git a/clang/lib/Basic/Targets/Mips.h b/clang/lib/Basic/Targets/Mips.h index b54d36e1c9..0c74508a81 100644 --- a/clang/lib/Basic/Targets/Mips.h +++ b/clang/lib/Basic/Targets/Mips.h @@ -332,6 +332,8 @@ public: HasMSA = true; else if (Feature == "+nomadd4") DisableMadd4 = true; + else if (Feature == "-nomadd4") + DisableMadd4 = false; else if (Feature == "+fp64") FPMode = FP64; else if (Feature == "-fp64")