
Volume 4: IA-32 SSE Instruction Reference
4:575
PSHUFW: Packed Shuffle Word
Operation:
mm1[15-0] = (mm2/m64 >> (imm8[1-0] * 16) )[15-0]
mm1[31-16] = (mm2/m64 >> (imm8[3-2] * 16) )[15-0]
mm1[47-32] = (mm2/m64 >> (imm8[5-4] * 16) )[15-0]
mm1[63-48] = (mm2/m64 >> (imm8[7-6] * 16) )[15-0]
Description:
The PSHUF instruction uses the imm8 operand to select which of the four words in
MM2/Mem will be placed in each of the words in MM1. Bits 1 and 0 of imm8 encode the
source for destination word 0 (MM1[15-0]), bits 3 and 2 encode for word 1, bits 5 and 4
encode for word 2, and bits 7 and 6 encode for word 3 (MM1[63-48]). Similarly, the two
bit encoding represents which source word is to be used, e.g. an binary encoding of 10
indicates that source word 2 (MM2/Mem[47-32]) will be used.
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
conditions 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.
Additional Itanium System Environment Exceptions
Itanium Reg Faults Disabled FP Register Fault if PSR.dfl is 1, NaT Register
Consumption Fault
Itanium Mem Faults VHPT Data Fault, Data TLB Fault, Alternate Data TLB Fault, Data
Page Not Present Fault, Data NaT Page Consumption Abort, Data
Key Miss Fault, Data Key Permission Fault, Data Access Rights
Fault, Data Access Bit Fault
4.14
Cacheability Control Instructions
This section describes the cacheability control instructions which enable an application
writer to minimize data access latency and cache pollution.
Opcode
Instruction
Description
0F,70,/r,ib
PSHUFW mm1, mm2/m64, imm8
Shuffle the words in MM2/Mem based on the
encoding in imm8 and store in MM1.
Содержание ITANIUM ARCHITECTURE
Страница 1: ......
Страница 7: ...402 Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Страница 199: ...4 192 Volume 4 Base IA 32 Instruction Reference FWAIT Wait See entry for WAIT ...
Страница 269: ...4 262 Volume 4 Base IA 32 Instruction Reference LES Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 270: ...Volume 4 Base IA 32 Instruction Reference 4 263 LFS Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 273: ...4 266 Volume 4 Base IA 32 Instruction Reference LGS Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 288: ...Volume 4 Base IA 32 Instruction Reference 4 281 LSS Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 352: ...Volume 4 Base IA 32 Instruction Reference 4 345 ROL ROR Rotate See entry for RCL RCR ROL ROR ...
Страница 368: ...Volume 4 Base IA 32 Instruction Reference 4 361 SHL SHR Shift Instructions See entry for SAL SAR SHL SHR ...
Страница 373: ...4 366 Volume 4 Base IA 32 Instruction Reference SIDT Store Interrupt Descriptor Table Register See entry for SGDT SIDT ...
Страница 589: ...4 582 Volume 4 IA 32 SSE Instruction Reference ...
Страница 590: ...Index Intel Itanium Architecture Software Developer s Manual Rev 2 3 Index ...
Страница 591: ...Index Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Страница 603: ...INDEX Index 12 Index for Volumes 1 2 3 and 4 ...
Страница 604: ......