MCQ · 2 marks · Instruction Pipelining

GATE CS 2015 CS-3 — Q49

Consider the following code sequence having five instructions I1I_1 to I5I_5. Each of these instructions has the following format.

OP Ri, Rj, Rk

where operation OP is performed on contents of registers Rj and Rk and the result is stored in register Ri.

I1I_1: ADD R1, R2, R3
I2I_2: MUL R7, R1, R3
I3I_3: SUB R4, R1, R5
I4I_4: ADD R3, R2, R4
I5I_5: MUL R7, R8, R9

Consider the following three statements.

S1: There is an anti-dependence between instructions I2I_2 and I5I_5
S2: There is an anti-dependence between instructions I2I_2 and I4I_4
S3: Within an instruction pipeline an anti-dependence always creates one or more stalls

Which one of above statements is/are correct?
Select one option