Computers and Technology

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, for a vector length 100. Initially, F0 holds constant a, R1 is set to the base address of array X, and R2 is set to the base address of array Y: DADDIU R4, R1, #800 ; R4 = upper bound for X foo: L. D F2, 0(R1) ; load X(i) to F2 MUL. D F4, F2, F0 ; (F4) = a*X(i) L. D F6, 0(R2) ; (F6) = Y(i) ADD. D F6, F4, F6 ; (F6) = a*X(i) + Y(i) S. D F6, 0(R2) ; store F6 to Y(i) DADDIU R1, R1, #8 ; increase X index DADDIU R2, R2, #8 ; increase Y index DSLTU R3, R1, R4 ; test: continue loop? BNEZ R3, foo ; loop if needed

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 19:30, Jbutler15
When creating a presentation in libre office impress, where does the editing of slides take place?
Answers: 1
image
Computers and Technology, 23.06.2019 09:00, opgbadwolf5
What provides an array of buttons for quick access to commonly used commands and tools
Answers: 1
image
Computers and Technology, 23.06.2019 11:50, itaheart101
While preforming before operation pmcs, you notice the front right tire appears slightly under-inflated. what is the proper action?
Answers: 3
image
Computers and Technology, 23.06.2019 12:00, clevelandjaniya1
Which of these is a benefit of using objects in a powerpoint presentation? a. collaborators can create the external files while you create and edit the slide show. b. you can easily change the theme and design of the presentation. c. you can have older data in the source file while having up-to-date data in the presentation. d. collaborators can easily share the presentation.
Answers: 2
Do you know the correct answer?
In this exercise, we look at how software techniques can extract instruction-level parallelism (ILP)...

Questions in other subjects: