Question: 4. (8 points) The following is the MIPS code for computing the max(a,b) as in the slides in chapter 2. Assume a static predict branch

 4. (8 points) The following is the MIPS code for computing

4. (8 points) The following is the MIPS code for computing the max(a,b) as in the slides in chapter 2. Assume a static predict branch not taken strategy with forwarding in the pipeline. Show the schedule for both a > b and b>a. predict not taken - ab 1 2 2 3 3 4 5 6 7 8 9 9 10 11 12 slt $t0,$ta, $tb FD x MW bne $to, $zero, add $tc, $ta, $zero j exit L add $tc, $tb, $zero exit predict not taken -b>a 1 2 3 4 5 6 FDX | M 7 8 8 9 9 10 11 12 sit $to, $ta, $tb w bne $to, $zero, L add $tc, $ta, $zero j exit L add $tc, $tb, $zero exit 4. (8 points) The following is the MIPS code for computing the max(a,b) as in the slides in chapter 2. Assume a static predict branch not taken strategy with forwarding in the pipeline. Show the schedule for both a > b and b>a. predict not taken - ab 1 2 2 3 3 4 5 6 7 8 9 9 10 11 12 slt $t0,$ta, $tb FD x MW bne $to, $zero, add $tc, $ta, $zero j exit L add $tc, $tb, $zero exit predict not taken -b>a 1 2 3 4 5 6 FDX | M 7 8 8 9 9 10 11 12 sit $to, $ta, $tb w bne $to, $zero, L add $tc, $ta, $zero j exit L add $tc, $tb, $zero exit

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!