Question: 2. Vectorizing Compiler (30 marks) Consider this familiar loop: loop: 1.d 4,0 (r1) 11 1.d f6,0(r2) 12 mul.d f6,f6, f2 m2 add.d f4,f4, f6 a1

 2. Vectorizing Compiler (30 marks) Consider this familiar loop: loop: 1.d

2. Vectorizing Compiler (30 marks) Consider this familiar loop: loop: 1.d 4,0 (r1) 11 1.d f6,0(r2) 12 mul.d f6,f6, f2 m2 add.d f4,f4, f6 a1 s.d f4,0 (1) s1 dadduir1,r1,#-8 subi dadduir2, r2,#-8 sub2 bnez rl,loop Rewrite the code using vector instructions. Draw the flow-dependence graph of vector instructions. Using vector chaining, make a rough estimate of the running time of the program, using the data in question 1. 2. Vectorizing Compiler (30 marks) Consider this familiar loop: loop: 1.d 4,0 (r1) 11 1.d f6,0(r2) 12 mul.d f6,f6, f2 m2 add.d f4,f4, f6 a1 s.d f4,0 (1) s1 dadduir1,r1,#-8 subi dadduir2, r2,#-8 sub2 bnez rl,loop Rewrite the code using vector instructions. Draw the flow-dependence graph of vector instructions. Using vector chaining, make a rough estimate of the running time of the program, using the data in question 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To rewrite the code using vector instructions well replace the scalar operations with vector operati... View full answer

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!