Question: Use the following code fragment: Loop: I d x 1 , 0 ( x 2 ) ; load x 1 from address 0 + x
Use the following code fragment:
Loop: ; load from address
addi ;
; store address
addi ;
sub ;
bnez Loop ; branch loop
Assume that the initial value of is
Q List all data dependences in the code above: Record the register, source instruction, and
destination instruction. For example, there is a data dependency for register from the to
the addi.
Hint: There are totally data dependences.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
