Question: Problem 1. a. List all of the data dependencies (RAW ,WAR ,WAW ) between instructions for the following code snipet .Use the notation {1,2} within

Problem 1. a. List all of the data dependencies (RAW,WAR,WAW) between instructions for the following code snipet.Use the notation {1,2} within a column to designate instruction 1 has that particular hazard with instruction 2.

Ld R2, R3, 0 (R4)

Addi R3,R4, #0x5

Sub R5,R6,R3

St R5, R3,R2

Ld R2, R3, 8(R4)

Addi R5,R2,R5

Bne R5,R2,

b. Rename the registers to eliminate the WAW and WAR dependencies.

Your Code

Ld R2, R3, 0 (R4)

Addi R3,R4, #0x5

Sub R5,R6,R3

St R5, R3,R2

Ld R2, R3, 8(R4)

Addi R5,R2,R5

Bne R5,R2,

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!