dcffixqq

Double-Precision Floating-Point Fix to Quadword

dcffixqq RT,RA

Converts a double-precision floating-point value to a quadword integer.

Details

The dcffixqq instruction converts the double-precision floating-point value in register RA to a quadword integer and stores it in register RT. The result is rounded towards zero.

Pseudocode Operation

RT <- (RA) rounded towards zero

Programming Note

The dcffixqq instruction is commonly used for converting double-precision floating-point numbers to integers, rounding towards zero. Ensure that the input value in RA is within the range representable by a quadword integer to avoid overflow or underflow exceptions. This instruction operates at user privilege level and does not require any specific ordering or alignment of registers.

Example

dcffixqq r3, r4

Encoding

Binary Layout
18
0
LI
6
AA
30
LK
31
 
Format X-form
Opcode 0xFC0007C4
Extension Floating-Point
Registers Altered FPSCR

Operands

  • RT
    Target General Purpose Register
  • RA
    Source General Purpose Register