Question: Floating-Point Instructions (Loop Timing II) Consider the following code fragment: loop: l.d f0,0(r2) l.d f2,0(r3) s.d f0,0(r2) sub.d f4,f4,f0 add.d f4,f4,f4 addi r2,r2,8 addi r3,r3,8
Floating-Point Instructions (Loop Timing II) Consider the following code fragment:
loop:
l.d f0,0(r2)
l.d f2,0(r3)
s.d f0,0(r2)
sub.d f4,f4,f0
add.d f4,f4,f4
addi r2,r2,8
addi r3,r3,8
sub r4,r5,r3
bnez r4,
loop 'sub.d' and 'add.d' have 3 x-boxes. 'mul.d' has 4 x-boxes. Functional units are fully pipelined. The loop iterates 90 times. Draw the space-time diagram of this code. Calculate the total execution time of the loop.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
