Question: 2) Consider the following instruction sequence. Determine all RAW dependencies in the code below and list them in the table. Use the notation Reg->ID, where
2) Consider the following instruction sequence. Determine all RAW dependencies in the code below and list them in the table. Use the notation "Reg->ID", where Reg is the register of the instruction that depends on the earlier instruction referenced by ID. In the example below, the source register x1 of Add x4, x1, x2 depends on the destination register of Load x1, 0(x31). An instruction may depend on more than 2 instructions (list dependencies between all instructions shown in the code snippet below). (4 Points) ID Instruction RAW Dependencies (Reg->ID) 11 Load x1, 0(31) 12 Load X2, 8(X31) 13 Add x4, x1, x2 x1->11 (example) 14 Mul x11, X2, x4 15 Sub x5, x1, x4 16 Load x6, 16(x11) 17 Add x6, X5, X6 18 Sub x7, x8, x9 19 Div x7, x7, X8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
