Compaq ECQD2KCTE manual Convert Integer to Ieee Floating, Cvtqs

Models: ECQD2KCTE

1 371
Download 371 pages 20.35 Kb
Page 174
Image 174

4.10.13 Convert Integer to IEEE Floating

Format:

CVTQy

Fb.rq,Fc.wx

!Floating-point Operate format

Operation:

Fc {conversion of Fbv<63:0>}

Exceptions:

Inexact Result

Instruction mnemonics:

CVTQS

Convert Quadword to S_floating

CVTQT

Convert Quadword to T_floating

Qualifiers:

Rounding:

Dynamic (/D)

 

Minus infinity (/M)

 

Chopped (/C)

Trapping:

Exception Completion (/S)

 

Inexact Enable (/I)

Description:

The two’s-complement operand in register Fb is converted to a single- or double-precision floating result and written to register Fc. The conversion complements a number if negative, normalizes it, rounds to the target precision, and packs the result with an appropriate sign and exponent field. Register Fa must be F31.

See Section 4.7.7 for details of the stored result on inexact result.

Notes:

In order to use CVTQS or CVTQT with exception completion handling, it is necessary to specify the /SUI IEEE trap mode, even though an underflow trap is not possible.

4–118Alpha Architecture Handbook

Page 174
Image 174
Compaq ECQD2KCTE manual Convert Integer to Ieee Floating, Cvtqs