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 />

VPSRAVD (VEX.256 version)<br />

COUNT_0 SRC2[31 : 0];<br />

(* Repeat Each COUNT_i for the 2nd through 7th dwords of SRC2*)<br />

COUNT_7 SRC2[255 : 224];<br />

IF COUNT_0 < 32 THEN<br />

DEST[31:0] SignExtend(SRC1[31:0] >> COUNT_0);<br />

ELSE<br />

For (i = 0 to 31) DEST[i + 0] (SRC1[31] );<br />

FI;<br />

(* Repeat shift operation for 2nd through 7th dwords *)<br />

IF COUNT_7 < 32 THEN<br />

DEST[255:224] SignExtend(SRC1[255:224] >> COUNT_7);<br />

ELSE<br />

For (i = 0 to 31) DEST[i + 224] (SRC1[255] );<br />

FI;<br />

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

VPSRAVD: __m256i _mm256_srav_epi32 (__m256i m, __m256i count)<br />

VPSRAVD: __m128i _mm_srav_epi32 (__m128i m, __m128i count)<br />

SIMD Floating-Point Exceptions<br />

None<br />

Other Exceptions<br />

See Exceptions Type 4; additionally<br />

#UD If VEX.W = 1.<br />

5-200 Ref. # 319433-014

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

Saved successfully!

Ooh no, something went wrong!