Insert Word; Example 4-7 Pextrw Instruction Code; Figure 4-5 Pextrw Instruction - Intel ARCHITECTURE IA-32 Reference Manual

Architecture optimization
Table of Contents

Advertisement

IA-32 Intel® Architecture Optimization

Figure 4-5 pextrw Instruction

Example 4-7
pextrw Instruction Code
;
Input:
;
;
; Output:
;
;
;
movq
pextrw edx, mm0, 0

Insert Word

The
pinsrw
integer register or from memory and inserts it in the MMX technology
destination register at a position defined by the two least significant bits
of the immediate constant. Insertion is done in such a way that the three
other words from the destination register are left untouched, see
Figure 4-6 and Example 4-8.
4-14
63
X4
eax
source value
immediate value:"0"
edx
32-bit integer register containing the
extracted word in the low-order bits &
the high-order bits zero-extended
mm0, [eax]
instruction loads a word from the lower half of a 32-bit
MM
31
X3
X2
X1
R32
31
0 ..0
X1
OM15163
0
0

Advertisement

Table of Contents
loading

Table of Contents