Figure 4-2, Interleaved pack with saturation -9, Figure 4-1 – Intel ARCHITECTURE IA-32 User Manual

Page 229: Packssdw mm, mm/mm64 instruction example -9

Advertising
background image

Optimizing for SIMD Integer Applications

4

4-9

Figure 4-2 illustrates two values interleaved in the destination register,
and Example 4-4 shows code that uses the operation. The two signed
doublewords are used as source operands and the result is interleaved
signed words. The pack instructions can be performed with or without
saturation as needed.

Figure 4-1

PACKSSDW

mm, mm/mm64 Instruction Example

Figure 4-2

Interleaved Pack with Saturation

O M15159

D

C

B

A

D

1

C

1

B

1

A

1

m m /m 64

m m

m m

O M15160

D

C

B

A

D

1

B

1

C

1

A

1

MM/M64

m m

m m

Advertising