Question: Question 3 [25 pts]: Consider the MIPS code below and answer the following questions. addi $t0,$zero,0 addi $t1,$zero,100 loop addi $t2,$t0,10 sw $t2, 0($s0) addi
![Question 3 [25 pts]: Consider the MIPS code below and answer](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f452c1c327b_00166f452c12ec57.jpg)
Question 3 [25 pts]: Consider the MIPS code below and answer the following questions. addi $t0,$zero,0 addi $t1,$zero,100 loop addi $t2,$t0,10 sw $t2, 0($s0) addi $s0,$s0,4 addi $t0,$t0,1 bne $t0,$t1,loop out: ---. (a) How many times will the bne statement be executed? (b) Assume that a static branch-not-taken prediction is used. What percentage of time will the prediction be correct? (c) Assume that a static branch-taken prediction is used. What percentage of time will the prediction be correct? Question 3 [25 pts]: Consider the MIPS code below and answer the following questions. addi $t0,$zero,0 addi $t1,$zero,100 loop addi $t2,$t0,10 sw $t2, 0($s0) addi $s0,$s0,4 addi $t0,$t0,1 bne $t0,$t1,loop out: ---. (a) How many times will the bne statement be executed? (b) Assume that a static branch-not-taken prediction is used. What percentage of time will the prediction be correct? (c) Assume that a static branch-taken prediction is used. What percentage of time will the prediction be correct
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
