3-549
INSTRUCTION SET REFERENCE
PSHUFWPacked Shuffle Word (Continued)
Intel C/C++ Compiler Intrinsic Equivalent
Pre-4.0 Intel C/C++ Compiler intrinsic:
__m64 _m_pshufw(__m64 a, int n)
Version 4.0 and later Intel C/C++ Compiler intrinsic:
__m64 _mm_shuffle_pi16(__m64 a, int n)
Returns a combination of the four words of a. The selector n must be an immediate.
Numeric Exceptions
None.
Protected Mode Exceptions
#GP(0)
For an illegal memory operand effective address in the CS, DS, ES, FS, or
GS segments.
#SS(0)
For an illegal address in the SS segment.
#PF (fault-code) For a page fault.
#UD
If CR0.EM = 1.
#NM
If TS bit in CR0 is set.
#MF
If there is a pending FPU exception.
#AC
For unaligned memory reference. To enable #AC exceptions, three condi-
tions must be true(CR0.AM is set; EFLAGS.AC is set; current CPL is 3).
Real Address Mode Exceptions
Interrupt 13
If any part of the operand would lie outside of the effective address space
from 0 to 0FFFFH.
#UD
If CR0.EM = 1.
#NM
If TS bit in CR0 is set.
#MF
If there is a pending FPU exception.
Virtual 8086 Mode Exceptions
Same exceptions as in Real Address Mode.
#PF(fault-code) For a page fault.
#AC
For unaligned memory reference if the current privilege level is 3.