4.10.24 VAX Floating Subtract

Format:

SUBxFa.rx,Fb.rx,Fc.wx!Floating-point Operate format

Operation:

Fc Fav - Fbv

Exceptions:

Invalid Operation

Overflow

Underflow

Instruction mnemonics:

SUBF

Subtract F_floating

SUBG

Subtract G_floating

Qualifiers:

Rounding:

Chopped (/C)

Trapping:

Exception Completion (/S)

 

Underflow Enable (/U)

Description:

The subtrahend operand in register Fb is subtracted from the minuend operand in register Fa and the difference is written to register Fc.

The difference is rounded or chopped to the specified precision and then the corresponding range is checked for overflow/underflow. The single-precision operation on canonical sin- gle-precision values produces a canonical single-precision result.

An invalid operation trap is signaled if either operand has exp=0 and is not a true zero (that is, VAX reserved operands and dirty zeros trap). The contents of Fc are UNPREDICTABLE if this occurs.

See Section 4.7.7 for details of the stored result on overflow or underflow.

4–130Alpha Architecture Handbook

Page 186
Image 186
Compaq ECQD2KCTE manual VAX Floating Subtract, Subf