[libunwind][MIPS] Add o32 single-float support (#218994)
On FPUs that only support single precision, such as the PSP's Allegrex,
libunwind fails to assemble for o32 because the save/restore code uses
sdc1/ldc1. Save and restore all 32 FPRs with swc1/lwc1 instead, keeping
each register in an 8-byte slot so the context layout is the same for
every o32 FPU configuration.
Check __mips_single_float before __mips_fpr: GCC defines __mips_fpr as
32 for single-float targets and Clang defines it as 0, but both define
__mips_single_float.
In Registers.hpp, treat each FPR as an independent 32-bit value when
__mips_single_float is set, rather than pairing even/odd registers.
Add a compile-only test that checks the size of the o32 context.
GitOrigin-RevId: 69f90dd74332a117fd7988309ea00a1cba2aca3d
5 files changed