PSUBQ—Subtract Packed Quadword Integers Instruction Operand EncodingDescriptionSubtracts the second operand (source operand) from the first operand (destination operand) and stores the result in the destination operand. When packed quadword operands are used, a SIMD subtract is performed. When a quadword result is too large to be represented in 64 bits (overflow), the result is wrapped around and the low 64 bits are written to the destination element (that is, the carry is ignored).Note that the (V)PSUBQ instruction can operate on either unsigned or signed (two’s complement notation) inte-gers; however, it does not set bits in the EFLAGS register to indicate overflow and/or a carry. To prevent undetected overflow conditions, software must control the ranges of the values upon which it operates.In 64-bit mode and not encoded with VEX/EVEX, using a REX prefix in the form of REX.R permits this instruction to access additional registers (XMM8-XMM15).Legacy SSE version 64-bit operand: The source operand can be a quadword integer stored in an MMX technology register or a 64-bit memory location. 128-bit Legacy SSE version: The second source operand is an XMM register or a 128-bit memory location. The first source operand and destination operands are XMM registers. Bits (MAXVL-1:128) of the corresponding YMM desti-nation register remain unchanged.Opcode/InstructionOp/ En64/32 bit Mode SupportCPUID Feature FlagDescriptionNP 0F FB /r1PSUBQ mm1, mm2/m64AV/VSSE2Subtract quadword integer in mm1 from mm2 /m64.66 0F FB /rPSUBQ xmm1, xmm2/m128AV/VSSE2Subtract packed quadword integers in xmm1from xmm2 /m128.VEX.128.66.0F.WIG FB/rVPSUBQ xmm1, xmm2, xmm3/m128BV/VAVXSubtract packed quadword integers in xmm3/m128 from xmm2.VEX.256.66.0F.WIG FB /rVPSUBQ ymm1, ymm2, ymm3/m256BV/VAVX2Subtract packed quadword integers in ymm3/m256 from ymm2.EVEX.128.66.0F.W1 FB /rVPSUBQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcstCV/VAVX512VLAVX512FSubtract packed quadword integers in xmm3/m128/m64bcst from xmm2 and store in xmm1 using writemask k1.EVEX.256.66.0F.W1 FB /rVPSUBQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcstCV/VAVX512VLAVX512FSubtract packed quadword integers in ymm3/m256/m64bcst from ymm2 and store in ymm1 using writemask k1.EVEX.512.66.0F.W1 FB/rVPSUBQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcstCV/VAVX512FSubtract packed quadword integers in zmm3/m512/m64bcst from zmm2 and store in zmm1 using writemask k1.NOTES:1. See note in Section 2.4, “AVX and SSE Instruction Exception Specification” in the Intel® 64 and IA-32 Architectures Software Developer’s Manual, Volume 2A and Section 22.25.3, “Exception Conditions of Legacy SIMD Instructions Operating on MMX Registers” in the Intel® 64 and IA-32 Architectures Software Developer’s Manual, Volume 3A.Op/EnTuple TypeOperand 1Operand 2Operand 3Operand 4ANAModRM:reg (r, w)ModRM:r/m (r)NANABNAModRM:reg (w)VEX.vvvv (r)ModRM:r/m (r)NACFullModRM:reg (w)EVEX.vvvv (r)ModRM:r/m (r)NA
This UNOFFICIAL reference was generated from the official Intel® 64 and IA-32 Architectures Software Developer’s Manual by a dumb script. There is no guarantee that some parts aren't mangled or broken and is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.