https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113243

--- Comment #1 from YunQiang Su <syq at gcc dot gnu.org> ---
Thanks for your report.

For R2, this problem has been fixed by

commit e3e5fd0c24c9b82d824da27bf8455bb3654e8eff
Author: YunQiang Su <s...@gcc.gnu.org>
Date:   Sat Jun 8 11:31:19 2024 +0800

    MIPS: Use signaling fcmp instructions for LT/LE/LTGT


For r6, this patch seems working
```
diff --git a/gcc/config/mips/mips.cc b/gcc/config/mips/mips.cc
index 392755316eb..d38750b77f3 100644
--- a/gcc/config/mips/mips.cc
+++ b/gcc/config/mips/mips.cc
@@ -5916,6 +5916,8 @@ mips_output_compare (const char *fpcmp, const char
*fcond,
        fc = "slt";
       else if (strcmp (fcond, "le") == 0)
        fc = "sle";
+      else if (strcmp (fcond, "ne") == 0)
+       fc = "sne";
     }
   else if (strcmp (fpcc_mode, "cce") == 0)
     {
```

Reply via email to