Delayed branching can help in the handling of control hazards The following…

PYQ GATE 2008

Delayed branching can help in the handling of control hazards The following code is to run on a pipelined processor with one branch delay slot:

I1: ADD R2←R7+R8
I2 : SUB R4← R5-R6
I3 : ADD R1← R2+R3
I4 : STORE Memory [R4]←[R1]
BRANCH to Label if R1== 0

Which of the instructions I1, I2, I3 or I4 can legitimately occupy the delay slot without any other program modification?

  1. A.

    I1

  2. B.

    I2

  3. C.

    I3

  4. D.

    I4

Attempted by 118 students.

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…