[LLVMdev] more mips16 puzzles

Reed Kotler rkotler at mips.com
Tue Jan 24 18:27:17 PST 2012


1. mips16 instructions (except for move) have a different encoding from 
normal mips32 instructions for two registers.

however in the move register 2 operand instruction, one register takes 
the mips16 encoding and the other the mips32 encoding (so that gives 
mips16 access to the full register set).

how does one deal with multiple encodings of the same register? can you 
change it on an instruction basis? in the case of the move instruction, 
each field has a different encoding.

2. the extra registers beyond the 8 basic ones in mips16 could be used 
to spill registers (as opposed to using the stack). can llvm do this?

tia.

reed





More information about the llvm-dev mailing list