Loop unroll the following MIPS code loop 4 times. Write the resulting code including any re-ordering necessary for maximum performance.
loop: sw $zero, 0($s0)
addi $s0, $s0, -4
bne $s0, $zero, loop
The ALUMux control signal that controls the Mux in the ALU input, 0 (Reg) selects the register output and 1 (Imm) selects the immediate occurrence of the instruction name as the second input to the ALU. the Mux control signal in the Data entry in regis-ter fi le, 0 (ALU) selects the ALU output and 1 (Mem) selects the memory output. (it does not matter if the signal is 0 or 1
Get Answers For Free
Most questions answered within 1 hours.