asm/reference

This content has not been validated; it was AI-generated following the x86-64 ISA Documentation generation process to maintain high quality. However, as no human has verified this data, errors may exist. If the accuracy of this data is critical, please consult the Intel SDM. The model used to generate this is gemma4:31b

VPERMI2PS



This instruction selects four single-precision floating-point values from two source operands based on an immediate value and stores the result in the destination operand. The immediate value specifies the indices of the elements to be selected from the first and second source operands.

The following table covers what the source and destinations can be.

source destination(s)
reg, m128 reg

DO NOT support LOCK

This instruction is available only in 64-bit mode or compatibility mode. It requires the AVX support feature.

The destination register MUST NOT be one of the source registers if memory operands are used, to avoid potential undefined behavior in some microarchitectures. If the destination is the same as a source register, the operation is performed atomically relative to the register state.