musl/arch/mips
Rich Felker cfc09b1ecf improve mips syscall asm constraints to use immediates, if possible
by using the "ir" constraint (immediate or register) and the carefully
constructed instruction addu $2,$0,%2 which can take either an
immediate or a register for %2, the new inline asm admits maximal
optimization with no register spillage to the stack when the compiler
successfully performs constant propagration, but still works by
allocating a register when the syscall number cannot be recognized as
a constant. in the case of syscalls with 0-3 arguments it barely
matters, but for 4-argument syscalls, using an immediate for the
syscall number avoids creating a stack frame for the syscall wrapper
function.
2012-09-11 02:23:47 -04:00
..
bits syscall organization overhaul 2012-09-08 22:43:14 -04:00
atomic.h avoid need for -march=mips2 to compile mips atomic.h asm 2012-08-11 19:51:21 -04:00
ksigaction.h initial version of mips (o32) port, based on work by Richard Pennington (rdp) 2012-07-11 04:22:13 -04:00
pthread_arch.h add clang-compatible thread-pointer code for mips 2012-09-07 12:18:14 -04:00
reloc.h more stuff lost committing mips dynamic linker 2012-08-05 13:48:42 -04:00
syscall_arch.h improve mips syscall asm constraints to use immediates, if possible 2012-09-11 02:23:47 -04:00