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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Operation<br />

Figure 5-2. 256-bit VPALIGN <strong>Instruction</strong> Operation<br />

PALIGNR<br />

temp1[255:0] ((DEST[127:0] >(imm8*8);<br />

DEST[127:0] temp1[127:0]<br />

DEST[VLMAX:128] (Unmodified)<br />

VPALIGNR (VEX.128 encoded version)<br />

temp1[255:0] ((SRC1[127:0] >(imm8*8);<br />

DEST[127:0] temp1[127:0]<br />

DEST[VLMAX:128] 0<br />

VPALIGNR (VEX.256 encoded version)<br />

temp1[255:0] ((SRC1[127:0] >(imm8[7:0]*8);<br />

DEST[127:0] temp1[127:0]<br />

temp1[255:0] ((SRC1[255:128] >(imm8[7:0]*8);<br />

DEST[255:128] temp1[127:0]<br />

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

(V)PALIGNR: __m128i _mm_alignr_epi8 (__m128i a, __m128i b, int n)<br />

VPALIGNR: __m256i _mm256_alignr_epi8 (__m256i a, __m256i b, const int n)<br />

SIMD Floating-Point Exceptions<br />

None<br />

Other Exceptions<br />

See Exceptions Type 4<br />

SRC1<br />

127 0<br />

127 0<br />

Imm8[7:0]*8<br />

255 128 255 128<br />

SRC1<br />

SRC2<br />

Imm8[7:0]*8<br />

255 128 127 0<br />

DEST<br />

DEST<br />

INSTRUCTION SET REFERENCE<br />

Ref. # 319433-014 5-35<br />

SRC2

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

Saved successfully!

Ooh no, something went wrong!