Intel ARCHITECTURE IA-32 User Manual Page 235

  • Download
  • Add to my manuals
  • Print
  • Page
    / 568
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 234
Optimizing for SIMD Integer Applications 4
4-15
If all of the operands in a register are being replaced by a series of
pinsrw instructions, it can be useful to clear the content and break the
dependence chain by either using the
pxor instruction or loading the
register. See the “Clearing Registers” section in Chapter 2.
Figure 4-6 pinsrw Instruction
Example 4-8 pinsrw Instruction Code
; Input:
; edx pointer to source value
; Output:
; mm0 register with new 16-bit value inserted
;
mov eax, [edx]
pinsrw mm0, eax, 1
OM15164
Y2
MM
R32
31 0
31 063
X4 X3 Y1 X1
Y1
Page view 234
1 2 ... 230 231 232 233 234 235 236 237 238 239 240 ... 567 568

Comments to this Manuals

No comments