4.10.9 Convert VAX Floating to Integer

Format:

CVTGQ

Fb.rx,Fc.wq

!Floating-point Operate format

Operation:

Fc {conversion of Fbv}

Exceptions:

Invalid Operation

Integer Overflow

Instruction mnemonics:

CVTGQConvert G_floating to Quadword

Qualifiers:

Rounding:

Chopped (/C)

Trapping:

Exception Completion (/S)

 

Integer Overflow Enable (/V)

Description:

The floating operand in register Fb is converted to a two’s-complement quadword number and written to register Fc. The conversion aligns the operand fraction with the binary point just to the right of bit zero, rounds as specified, and complements the result if negative. Register Fa must be F31.

An invalid operation trap is signaled if the 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 integer overflow.

4–114Alpha Architecture Handbook

Page 170
Image 170
Compaq ECQD2KCTE manual Convert VAX Floating to Integer, Cvtgq