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 iin range (256) :
ifx[i]0
,x[i+1]=x[i]+Y[i]-z[i]
Is the above loop vectorizable? If not, then show where the problem lies.
b) Compare the Intel's SIMD extension instructions and RISC-V vector instructions.
c) Consider the following code where ' and B are mmory-based arrays and 's' a double precision FP
number also stored in memory:
for {:[iinrange(200):]A[i]=A[i]**sB[i]=B[i]+A[i]
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 three-issue VLIW machine is designed that can issue one ALU/Branch, 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.
 a) Consider the following loop for iin range (256) : ifx[i]0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!