Itanium(R) processor topicParallel Maximum Instruction

pmax

Operation Font Conventions

Instruction Type I

Format

(qp) pmax1.u r1 = r2, r3 one_byte_form

(qp) pmax2 r1 = r2, r3 two_byte_form


Description

The maximum of the two source operands is placed in the result register. In the one_byte_form, each unsigned 8-bit element of GR r2 is compared with the corresponding unsigned 8-bit element of GR r3 and the greater of the two is placed in the corresponding 8-bit element of GR r1. In the two_byte_form, each signed 16-bit element of GR r2 is compared with the corresponding signed 16-bit element of GR r3 and the greater of the two is placed in the corresponding 16-bit element of GR r1.

Click to see examples of the one and two-byte forms of the parallel maximum instruction in one illustration.


Related Topics:

cmp - Compare Instruction

cmp4 - Compare Word Instruction

cmpxchg - Compare and Exchange Instruction

Compare Instructions

fcmp - Floating-point Compare 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

pmin - Parallel Minimum Instruction

pmpy - Parallel Multiply Instruction

pmpyshr - Parallel Multiply and Shift Right Instruction

psad1 - Parallel Sum of Absolute Difference Instruction

pshl - Parallel Shift Left Instruction

pshradd - Parallel Shift Right and Add Instruction

psub - Parallel Subtract Instruction