Identify the types of register data dependencies in the following piece of code;


L1: mul r2, r3, r4
L2: add r3, r2, r4
L3: add r4, r2, r4
L4: sub r3, r4, r3



L1: mul r2, r3, r4
L2: add r3, r2, r4 r2 source with r2 destination in L1, RAW
r3 destination with r2 source in L1, WAR
L3: add r4, r2, r4 r2 source with r2 destination in L1, RAW
L4: sub r3, r4, r3 r4 source with r4 destination in L3, RAW
r3 source with r3 destination in L2, RAW
r3 destination with r3 destination in L2, WAW

Computer Science & Information Technology

You might also like to view...

What is the value of calculate (list, 4) if list is an array containing the elements 5, 7, 11, 6 and the definition of calculate is:

int calculate (int p[], int n) { if (n == 1) return p[0] else return p[n-1] – calculate(p, n-1); }

Computer Science & Information Technology

______ parameters were defined in Algol and are generally not used any more.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The first step when saving a file for someone running Word 97-2003 is to click the ________ tab

Fill in the blank(s) with correct word

Computer Science & Information Technology

On the Spot Healing Brush Tool, the Type setting ____ option often is used when the problem areas are surrounded by a great deal of detail.

a. Proximity Match b. Outside Edges c. Create Texture d. Nearby Pixels

Computer Science & Information Technology