Question: Loop unrolling 4. Loop unrolling. (a) What does the code below do? loopl: LD F6, 0 (R1) LD MULT.D F6, F6, F8 SD DADDIU R1,
4. Loop unrolling. (a) What does the code below do? loopl: LD F6, 0 (R1) LD MULT.D F6, F6, F8 SD DADDIU R1, R1, +8 BNE F8, 0 (R2) F6, 0 (R3) R1, R4, loop1 (b) Given the code above unroll the loop once, rename registers as needed and schedule the code eliminate as many stalls as possible. Assume there are 107 elements in the array. (c) Now consider the code FO 0.0 loopl: LD F6, 0 (R1) F8, 0 (R2) LD MULT.D F6, F6, F8 ADD.D FO, FO, F6 1/ this instruction is the change DADDIU Ri, R1, +8 BNE R1, R4, loopl What does this code do? (d) Unroll once, rename and schedule this
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
