https://gcc.gnu.org/g:41ccca8fffd2359e5656490a85370740797a633c

commit r16-6814-g41ccca8fffd2359e5656490a85370740797a633c
Author: David Guillen Fandos <[email protected]>
Date:   Thu Jan 15 00:45:37 2026 +0100

    MIPS: Add R5900 to ISA_HAS_FMIN_FMAX.
    
    The R5900 doesn't have proper IEEE754 handling: for all its FP
    instructions, like "c.eq.s" or "add.s".
    
    Since most of the other instructions are also broken,
    so we can just define this, and the users should know about
    what they are doing.
    
    gcc/ChangeLog:
    
            * config/mips/mips.h (ISA_HAS_FMIN_FMAX): Add R5900;
            note that, R5900 is not IEEE754 fully compatiable.
    
    Signed-off-by: David Guillen Fandos <[email protected]>

Diff:
---
 gcc/config/mips/mips.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index bafcb761871b..f52d0d2358cc 100644
--- a/gcc/config/mips/mips.h
+++ b/gcc/config/mips/mips.h
@@ -1278,7 +1278,8 @@ struct mips_cpu_info {
 #define ISA_HAS_9BIT_DISPLACEMENT      (mips_isa_rev >= 6              \
                                         || ISA_HAS_MIPS16E2)
 
-#define ISA_HAS_FMIN_FMAX      (mips_isa_rev >= 6)
+#define ISA_HAS_FMIN_FMAX      (mips_isa_rev >= 6                      \
+                                || TARGET_MIPS5900)
 
 #define ISA_HAS_FRINT          (mips_isa_rev >= 6)

Reply via email to