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.

INSTRUCTION SET REFERENCE<br />

VPERMPD — Permute Double-Precision Floating-Point Elements<br />

Opcode/<br />

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

Description<br />

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

Use two-bit index values in the immediate byte to select a double-precision floating-point element in the source<br />

operand; the resultant data from the source operand is copied to the corresponding element of the destination<br />

operand in the order of the index field. Note that this instruction permits a qword in the source operand to be copied<br />

to multiple location in the destination operand.<br />

An attempt to execute VPERMPD encoded with VEX.L= 0 will cause an #UD exception.<br />

Operation<br />

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

DEST[63:0] (SRC[255:0] >> (IMM8[1:0] * 64))[63:0];<br />

DEST[127:64] (SRC[255:0] >> (IMM8[3:2] * 64))[63:0];<br />

DEST[191:128] (SRC[255:0] >> (IMM8[5:4] * 64))[63:0];<br />

DEST[255:192] (SRC[255:0] >> (IMM8[7:6] * 64))[63:0];<br />

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

VPERMPD: __m256d _mm256_permute4x64_pd(__m256d a, int control) ;<br />

SIMD Floating-Point Exceptions<br />

None<br />

Other Exceptions<br />

Op/<br />

En<br />

See Exceptions Type 4; additionally<br />

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

64/32<br />

-bit<br />

Mode<br />

CPUID<br />

Feature<br />

Flag<br />

Description<br />

VEX.256.66.0F3A.W1 01 /r ib A V/V AVX2 Permute double-precision floating-point elements in ymm2/m256<br />

using indexes in imm8 and store the result in ymm1.<br />

VPERMPD ymm1, ymm2/m256,<br />

imm8<br />

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

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

5-186 Ref. # 319433-014

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

Saved successfully!

Ooh no, something went wrong!