Question:

Instruction format has the following structure.Instruction number OPCODE destination Source \(1\) and Source \(2\).
\(I_1:\) Div \(R_3 R_1 R_2;\)
\(I_2:\) Sub \(R_5 R_3 R_4;\)
\(I_3:\) Add \(R_3 R_5 R_6;\)
\(I_4:\) Mul \(R_7 R_3 R_8;\)

Updated On: Feb 12, 2024
  • There is a RAW dependency on \(R_3\) between \(I_1\) and \(I_2\)

  • There is a RAW dependency on \(R_3\) between \(I_2\) and \(I_3\)

  • There is a WAW dependency on \(R_3\) between \(I_3\) and \(I_4\)

  • There is a WAR dependency on \(R_3\) between \(I_1\) and \(I_3\)

Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A, B

Solution and Explanation

The correct options are (A) and (B).
Was this answer helpful?
0
0

Top Questions on Machine Instructions and Addressing Modes