Itanium(R) processor topicParallel Multiply and Shift Right Instruction

pmpyshr

Operation Font Conventions

Instruction Type I

Format

(qp) pmpyshr2 r1 = r2, r3, count2 signed_form

(qp) pmpyshr2.u r1 = r2, r3, count2 unsigned_form


Description

The four 16-bit data elements of GR r2 are multiplied by the corresponding four 16-bit data elements of GR r3 as shown in the figure below. This multiplication can either be signed (pmpyshr2), or unsigned (pmpyshr2.u). Each product is then shifted to the right count2 bits, and the least-significant 16-bits of each shifted product form 4 16-bit results, which are placed in GR r1. A count2 of 0 gives the 16 low bits of the results, a count2 of 16 gives the 16 high bits of the results.

Click to see an example of how the parallel multiply and shift right instruction works.


Related Topics:

Bit Field and Shift Instructions

fma - Floating-point Multiply Add Instruction

fnma - Floating-point Negative Multiply Add Instruction

fnmpy - Floating-point Negative Multiply Instruction

fpabs - Floating-point Parallel Absolute Value Instruction

fpamax - Floating-point Parallel Absolute Value Maximum Instruction

fpamin - Floating-point Parallel Absolute Value Minimum Instruction

fpcmp - Floating-point Parallel Compare Instruction

fpcvt.fx - Convert Parallel Floating-point to Integer Instruction

fpma - Floating-point Parallel Multiply Add Instruction

fpmax - Floating-point Parallel Maximum Instruction

fpmerge - Floating-point Parallel Merge Instructions

fpmin - Floating-point Parallel Minimum Instruction

fpmpy - Floating-point Parallel Multiply Instruction

fpms - Floating-point Parallel Multiply Subtract Instruction

fpneg - Floating-point Parallel Negate Instruction

fpnegabs - Floating-point Parallel Negate Absolute Value Instruction

fpnma - Floating-point Parallel Negative Multiply Add Instruction

fpnmpy - Floating-point Parallel Negative Multiply Instruction

fprcpa - Floating-point Parallel Reciprocal Approximation Instruction

fprsqrta - Floating-point Parallel Reciprocal Square Root Approximation Instruction

Integer Multiply and Add (in FP Unit) Instructions

mov gr - Move General Register Instruction

mov imm - Move Immediate Instruction

padd - Parallel Add Instruction

Parallel Arithmetic Instructions

Parallel Data Arrangement Instructions

Parallel Shift Instructions

pavg - Parallel Average Instruction

pavgsub - Parallel Average Subtract Instruction

pcmp - Parallel Compare Instruction

pmax - Parallel Maximum Instruction

pmin - Parallel Minimum Instruction

pmpy - Parallel Multiply Instruction

psad1 - Parallel Sum of Absolute Difference Instruction

pshl - Parallel Shift Left Instruction

pshladd - Parallel Shift Left and Add Instruction

pshradd - Parallel Shift Right and Add Instruction

psub - Parallel Subtract Instruction

shl - Shift Left Instruction

shladd - Shift Left and Add Instruction

shladdp - Shift Left and Add Pointer Instruction

shr - Shift Right Instruction

shrp - Shift Right Pair Instruction

xma - Fixed-point Multiply Add Instruction