Question: a ) Consider the following loop for i i n range ( 2 5 6 ) : i f x [ i ] 0 ,
a Consider the following loop
for range :
Is the above loop vectorizable? If not, then show where the problem lies.
b Compare the Intel's SIMD extension instructions and RISCV vector instructions.
c Consider the following code where and are mmorybased arrays and a double precision FP
number also stored in memory:
for
The following table gives the stall cycles required between instruction producing the result and the
instruction using that result.
The corresponding assembly code without any scheduling is given as under:
Suppose a threeissue VLIW machine is designed that can issue one ALUBranch one FP operation,
and one memory reference instruction in every clock cycle. Schedule the above code on this VLIW
processor so that the stalls are minimized and IPC is maximized. You can also unroll the loop if
required for better performance. All forwarding paths are available. What is the maximum IPC you
achieved? Compare it with the theoretical maximum.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
