llvm-project
4bfe5ade - [Mips] Set _MIPS_SPFPSET to 16 before MIPS32 with 32-bit FPRs (#246579)

Commit
2 days ago
[Mips] Set _MIPS_SPFPSET to 16 before MIPS32 with 32-bit FPRs (#246579) Before MIPS32, single-precision arithmetic can't use the odd FPRs when the FPRs are 32 bits wide, and the backend doesn't use them there. Clang still defined _MIPS_SPFPSET as 32 for MIPS I, and for MIPS II to MIPS IV with -mfp32. Define it as 16 there, as GCC does. A single-float FPU such as the R5900 has 32 single-precision FPRs, so single-float is not changed. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Author
Parents
Loading