Itanium(R) processor topicParallel Compare Instruction

pcmp

Operation Font Conventions

Instruction Type A

Format

(qp) pcmp1.prel r1 = r2, r3 one_byte_form

(qp) pcmp2.prel r1 = r2, r3 two_byte_form

(qp) pcmp4.prel r1 = r2, r3 four_byte_form


Description

The two source operands are compared for one of the two relations shown in the table below. If the comparison condition is true for corresponding data elements of GR r2 and GR r3, then the corresponding data element in GR r1 is set to all ones. If the comparison condition is false, the corresponding data element in GR r1 is set to all zeros. For the ‘>' relation, both operands are interpreted as signed.

Click to see examples of the one, two and four-byte forms of the parallel compare 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

pmax - Parallel Maximum 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