13-Bit Immediate Optimization (simm13.ml)

In SPARC assembly, most integer operations can take an integer within 13 bits (no less than -4096 and less than 4096) as the second operand. An optimization using this feature is implemented in Simm13.g and Simm13.g'. They are similar to constant folding and elimination of unnecessary definitions, except that the target language is virtual SPARC assembly and the constants are limited to 13-bit integers.

Next