03.03.2013 Views

Intel® Architecture Instruction Set Extensions Programming Reference

Intel® Architecture Instruction Set Extensions Programming Reference

Intel® Architecture Instruction Set Extensions Programming Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

INSTRUCTION SET REFERENCE<br />

VINSERTI128 — Insert Packed Integer Values<br />

Opcode/<br />

<strong>Instruction</strong><br />

Description<br />

<strong>Instruction</strong> Operand Encoding<br />

Performs an insertion of 128-bits of packed integer data from the second source operand (third operand) into an<br />

the destination operand (first operand) at a 128-bit offset from imm8[0]. The remaining portions of the destination<br />

are written by the corresponding fields of the first source operand (second operand). The second source operand<br />

can be either an XMM register or a 128-bit memory location.<br />

The high 7 bits of the immediate are ignored.<br />

VEX.L must be 1; an attempt to execute this instruction with VEX.L=0 will cause #UD.<br />

Operation<br />

VINSERTI128<br />

TEMP[255:0] SRC1[255:0]<br />

CASE (imm8[0]) OF<br />

0: TEMP[127:0] SRC2[127:0]<br />

1: TEMP[255:128] SRC2[127:0]<br />

ESAC<br />

DEST TEMP<br />

Intel C/C++ Compiler Intrinsic Equivalent<br />

VINSERTI128: __m256i _mm256_inserti128_si256 (__m256i a, __m128i b, int offset);<br />

SIMD Floating-Point Exceptions<br />

None<br />

Other Exceptions<br />

Op/<br />

En<br />

See Exceptions Type 6; additionally<br />

#UD If VEX.L = 0,<br />

If VEX.W = 1.<br />

64/32<br />

-bit<br />

Mode<br />

CPUID<br />

Feature<br />

Flag<br />

Description<br />

VEX.NDS.256.66.0F3A.W0 38 /r ib A V/V AVX2 Insert 128-bits of integer data from xmm3/mem and the remaining<br />

values from ymm2 into ymm1<br />

VINSERTI128 ymm1, ymm2,<br />

xmm3/m128, imm8<br />

Op/En Operand 1 Operand 2 Operand 3 Operand 4<br />

A ModRM:reg (w) VEX.vvvv ModRM:r/m (r) NA<br />

5-192 Ref. # 319433-014

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!