David Guillen Fandos <[email protected]> 于2026年1月15日周四 07:45写道:
>
> gcc/ChangeLog:
>
> * config/mips/mips.h (ISA_HAS_FMIN_FMAX): Add R5900.
>
> Signed-off-by: David Guillen Fandos <[email protected]>
> ---
> 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 bafcb761871..f52d0d2358c 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)
>
Is there any document showing the behavior of max.s/min.s of R5900 on
sNaN vs NUM
+0 vs -0
qNaN vs NUM
sNaN vs qNAN
sNaN vs sNaN
> #define ISA_HAS_FRINT (mips_isa_rev >= 6)
>
> --
> 2.52.0
>