User Guide
196 64-Bit Media Programming
AMD64 Technology 24592—Rev. 3.15—November 2009
Figure 5-2. Unpack and Interleave Operation
Figure 5-3 shows a shuffle operation (PSHUFW), in which one of the operands provides vector data,
and an immediate byte provides shuffle control for up to 256 permutations of the data.
Figure 5-3. Shuffle Operation (1 of 256)
5.3.3 Matrix Operations
Media applications often multiply and accumulate vector and matrix data. In 3D graphics applications,
for example, objects are typically represented by triangles, each of whose vertices are located in 3D
space by a matrix of coordinate values, and m atrix transforms are performed to simulate object
movement.
The 64-bit media integer and floating-point instructions can perform several types of matrix-vector or
matrix-matrix operations, such as addition, subtraction, multiplication, and accumulation. The integer
513-144.eps
operand 1
result
63 0
63 0
operand 2
63 0
513-126.eps
operand 2operand 1
result
63 0
63 0
63 0