Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[ 1 0 0 pts ] In this exercise, we look at how software techniques can extract instruction - level parallelism ( ILP ) in

[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,x1 is set to the base address of array x, and x2 is set to the
base address of array Y:
(i1) foo: fld f0,0(x1),; load X(i) to Reg(f0)
(i2) fmul.d f4,f0,f2,;Reg(f4)=a**x(i)
(i3) fld f6,0(x2) ; load Y(i) to Reg(f6)
(i4) fadd.d f6, f4, f6 ; Reg(f6)=a**x(i)+Y(i)
(i5) fsd f6,0(x2) ; store Reg(f6) to Y(i)
(i6) addi x1,x1,8,; increase x index
(i7) addi x2,x2,8,; increase Y index
(i8) sltu x4,x1,x3,; test: continue loop? (if x4=1x4x1, set x4=1
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions