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,

Loop unrolling  Loop unrolling 4. Loop unrolling. (a) What does the code below

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!