mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-08-24 15:58:36 +00:00
24 lines
1.0 KiB
Diff
24 lines
1.0 KiB
Diff
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.
|
|
|
|
Index: llvm-toolchain-snapshot_19~++20240521052636+4ae896fe979b/clang/lib/Basic/Targets/Mips.h
|
|
===================================================================
|
|
--- llvm-toolchain-snapshot_19~++20240521052636+4ae896fe979b.orig/clang/lib/Basic/Targets/Mips.h
|
|
+++ llvm-toolchain-snapshot_19~++20240521052636+4ae896fe979b/clang/lib/Basic/Targets/Mips.h
|
|
@@ -349,7 +349,9 @@ public:
|
|
HasMSA = true;
|
|
else if (Feature == "+nomadd4")
|
|
DisableMadd4 = true;
|
|
- else if (Feature == "+fp64") {
|
|
+ else if (Feature == "-nomadd4")
|
|
+ DisableMadd4 = false;
|
|
+ else if (Feature == "+fp64") {
|
|
FPMode = FP64;
|
|
FpGiven = true;
|
|
} else if (Feature == "-fp64") {
|