[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Assembler Language Reference

fmr (Floating Move Register) Instruction

Purpose

Copies the contents of one floating-point register into another floating-point register.

Syntax

fmr FRT,FRB
fmr. FRT,FRB

Description

The fmr instruction places the contents of floating-point register (FPR) FRB into the target FPR FRT.

The fmr instruction has two syntax forms. Each syntax form has a different effect on Condition Register Field 1.

Syntax Form Floating-Point Status and Control Register Record Bit (Rc) Condition Register Field 1
fmr None 0 None
fmr. None 1 FX,FEX,VX,OX

The two syntax forms of the fmr instruction never affect the Floating-Point Status and Control Register. If the syntax form sets the Record (Rc) bit to 1, the instruction affects the Floating-Point Exception (FX), Floating-Point Enabled Exception (FEX), Floating-Point Invalid Operation Exception (VX), and Floating-Point Overflow Exception (OX) bits in Condition Register Field 1.

Parameters

FRT Specifies target floating-point register for operation.
FRB Specifies source floating-point register for operation.

Examples

  1. The following code copies the contents of FPR 4 into FPR 6 and sets the Floating-Point Status and Control Register to reflect the result of the operation:
    # Assume FPR 4 contains 0xC053 4000 0000 0000.
    # Assume FPSCR = 0.
    fmr 6,4
    # FPR 6 now contains 0xC053 4000 0000 0000.
    # FPSCR now contains 0x0000 0000.
  2. The following code copies the contents of FPR 25 into FPR 6 and sets the Floating-Point Status and Control Register and Condition Register Field 1 to reflect the result of the operation:
    # Assume FPR 25 contains 0xFFFF FFFF FFFF FFFF.
    # Assume FPSCR = 0 and CR = 0.
    fmr. 6,25
    # FPR 6 now contains 0xFFFF FFFF FFFF FFFF.
    # FPSCR now contains 0x0000 0000.
    # CR now contains 0x0000 0000.

Related Information

Floating-Point Processor.

Interpreting the Contents of a Floating-Point Register.

Floating-Point Move Instructions.


[ Previous | Next | Contents | Home | Search ]