Question: Please explain in detail 1. [100 pts] In this exercise, we look at how software techniques can extract instruction- level parallelism (ILP) in a common

Please explain in detail

Please explain in detail 1. [100 pts] In this exercise, we lookat how software techniques can extract instruction- level parallelism (ILP) in a

1. [100 pts] In this exercise, we look at how software techniques can extract instruction- level parallelism (ILP) in a common vector loop. The following loop is the so-called DAXPY loop (double-precision aX plus Y) and is the central operation in Gaussian elimination. The following code implements the DAXPY operation, Y = ax + Y. Initially, f2 holds constant a, xl is set to the base address of array X, and x2 is set to the base address of array Y: (il) foo: (12) (13) (14) (15) (16) (17) (18) (19) fld fo, 0(x1) fmul.d f4, fo, f2 fld f6, 0(x2) fadd.d f6, f4, f6 fsd f6, 0(x2) addi xl, x1, 8 addi X2, X2,8 sltu x4, xl, x3 bnez x4, foo ; load X(i) to Reg(fo) ; Reg(f4) = a*X(i) ; load Y(i) to Reg(f6) ; Reg(f6) = a*X(i) + Y(i) ; store Reg(f6) to Y(i) ; increase X index ; increase Y index ; test: continue loop? (if xl

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 Chemical Engineering Questions!