Question: (a) Identify the data dependencies in the following code (RAW, WAW, WAR). Show how register renaming can be used to remove some of the

(a) Identify the data dependencies in the following code (RAW, WAW, WAR). Show how register renaming can be

(a) Identify the data dependencies in the following code (RAW, WAW, WAR). Show how register renaming can be used to remove some of the dependencies (Assume registers r8 and r9 are available). [6 pts] r4 r2 + r3 r2 r1 r3 r5 r3 / r4 r4 r1 r3 beq r5, r2, exit (b) Consider the loop below. How does a 1-bit predictor compare with a 2-bit predictor? Illustrate by assuming the code below is executed two consecutive times and the predictor is initially set to NT (not taken). Then compare the number of times the branch instruction bne is incorrectly predicted by the two methods. [5 pts] Label: add $t0, $zero, $zero addi $t1, $zero, 5 addi sub bne $t0, $t0, 1 $t2, $t1, $te $t2, $0, Label

Step by Step Solution

3.31 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a Data Dependencies and Register Renaming Lets analyze the data dependencies in the given code RAW R... View full answer

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 Programming Questions!