Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The folllowing is an example sequence of code for a vector architecture. What do

ID: 3588896 • Letter: T

Question

The folllowing is an example sequence of code for a vector architecture. What does the following code do? lv Sv1, 0(Sto) lv Sv2, 0(St1) addv.d $v3, Sv1, Sv2 sv Sv3, 0(St1) O A Loads two vectors from the addresses in Sto and St1, adds the vectors together and then puts the result back into memory at the address in St. O B. Loads two addresses from the vectors sv1 and Sv2, adds them together and places the answer into Sv2 O c. Loads a vector from the address in Sto and copies it into the memory at the address in St1 D. Copies two vectors from registers St0 and $t1, adds them together and puts the answer into $v2

Explanation / Answer

Ans: (A)

loads two vectors from the addresses $t0,$t1,adds the two vectors together and then puts the results back into memory address of $t1.