If MM0 contains 0x0001 0002 0003 0004 and MM1 contains 0x0005 0006 0007 0008, what is the effect of PMADDWD MM0,MM1?
What will be an ideal response?
The packed multiply instruction forms four products using the four 16?bit words in the source and destination.
If the words are X3, X2, X1, X0 and Y3, Y2, Y1, Y0, the products are X3?Y3, X2?Y2, X1?Y1, X0?Y0. The final result is
given by X3?Y3 + X2?Y2 as the upper 32?bit word and X1?Y1 + X0?Y0 as the lower 32?bit word in the destination.
In this case the products (in decimal) will be 5, 12, 21, 32. The two sums will be 17 and 53. The final value in
MM0 will be 0x0000001100000035.
You might also like to view...
The term graphic includes all of the following EXCEPT:
A) photographs. B) line art. C) cartoon drawings. D) tables and borders.
The percentage that is paid for the use of the borrowed money is the ________
A) rate B) principal C) future value D) present value