[clang] [llvm] MIPS/clang: Fix asm constraint for softfloat (PR #79116)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 26 21:43:26 PST 2024


================
@@ -238,6 +238,9 @@ class LLVM_LIBRARY_VISIBILITY MipsTargetInfo : public TargetInfo {
     case 'd': // Equivalent to "r" unless generating MIPS16 code.
     case 'y': // Equivalent to "r", backward compatibility only.
     case 'f': // floating-point registers.
+      if (*Name == 'f' && FloatABI == SoftFloat)
----------------
MaskRay wrote:

It's better to move 'd' and 'y' below. I'll fix it.

https://github.com/llvm/llvm-project/pull/79116


More information about the llvm-commits mailing list