GATE CS 2015 Set 3 — Question 49

Go beyond PYQs with Success TrackerAI-powered personalised practice and doubt support. Unlimited practice on eligible plans; AI usage limits apply.
MCQ+2 / -0.67MediumData Hazards (RAW, WAR, WAW)Instruction PipeliningComputer Organization & ArchitecturePipeline Stalls

Computer Organization & Architecture → Instruction Pipelining → Data Hazards (RAW, WAR, WAW)

Last updated

Question

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?
Your answer

Choose one option, then check your answer.

The solution stays hidden until you check.

Continue learning with Success Tracker

A step still unclear? Work through it with support

Use Success Tracker to ask about the reasoning, then try another GATE CS question to check your understanding.

AI-powered practice· Unlimited practice on eligible plans
PYQs with solutions
Attempt available previous-year questions, then compare your reasoning with the worked solution. Coverage varies by stream.
Practice that adapts
Choose a topic, work on weaker areas and bookmark questions to revisit. Your attempts feed your progress tracking.
AI doubt support
Ask follow-up questions about a step or concept while practising, instead of stopping at the final answer.

Unlimited practice is available on eligible plans. Free practice and AI usage have limits; check the current plan allowances before choosing.

This page stays readable without an account. AI responses can be wrong; check them against the solution and source material.

More questions on Instruction Pipelining