[Mips] Define __mips as 1 for the R3000A #21
Loading…
Reference in a new issue
No description provided.
Delete branch "r3000a-mips1-predefines"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On the o32 ABI, -mcpu=r3000a predefined __mips as 32 and _MIPS_ISA as _MIPS_ISA_MIPS32. newlib memcpy.S and memset.S gate prefetching on __mips, so IOP builds with LLVM emitted pref (60 instructions in sdk-core sysclib), which the R3000A does not implement. GCC defines __mips as 1 here.
r3000a now defines __mips=1 and _MIPS_ISA_MIPS1. Other CPUs are unchanged; checked r3000a, mips32 and r5900 with a local clang build. Adds clang/test/Preprocessor/mips-r3000a-predefines.c (not run through lit).
Found while working on PS2-193.
🤖 Generated with Claude Code