Subtract Instructionsub
Instruction Type A
Format
(qp) sub r1 = r2, r3 register_form
(qp) sub r1 = r2, r3, 1 minus1_form, register_form
(qp) sub r1 = imm8, r3 imm8_form
Description
The second source operand (and an optional constant 1) are subtracted from the first operand and the result placed in GR r1. In the register form the first operand is GR r2; in the immediate form the first operand is taken from the sign extended imm8 encoding field.
The minus1_form is available only in the register_form (although the equivalent effect can be achieved by adjusting the immediate).
fms - Floating-point Multiply Subtract Instruction
fpms - Floating-point Parallel Multiply Subtract Instruction
fsub - Floating-point Subtract Instruction
pavgsub - Parallel Average Subtract Instruction