Closed andreas-eberle closed 9 years ago
For this task, I need one more spill code register. Reason is that:
mov R1, (R2, R3, x) needs three registers.
Maybe we can optimize this later to:
mov MEM3, R2
mul x, R2
add M2, R2
mov R1, (R2)
Fixed already.
Can be reproduced by reducing the number of available register for the register allocation to 1. Then the test file Sorter.mj produces lines like
´´´ imul $0x4, -0x30(%rbp) # mul operation ´´´