pstfd
Prefixed Store Floating-Point Double MLS:D-form
Stores a double-precision floating-point value from a register to memory.
Details
The prefixed store floating-point double instruction stores the contents of floating-point register FRS into the doubleword in memory addressed by the effective address (EA). The EA is the sum of the content of general-purpose register RA (or 0 if RA=0) and the sign-extended 34-bit immediate value D formed from the prefix and suffix fields. This is a prefixed instruction using the MLS:D-form encoding, introduced in PowerISA v3.1.
Pseudocode Operation
EA ← (if RA=0 then 0 else (RA)) + EXTS(D)
MEM(EA, 8) ← (FRS)
Programming Note
The pstfd instruction is used to store a double-precision floating-point value from a register into memory. Ensure that the effective address calculation does not result in an overflow or underflow. This instruction requires the EA to be aligned on an 8-byte boundary for optimal performance and correctness.
Example
Encoding
Operands
-
FRT
Target Floating-Point Register -
RA
Base General Purpose Register -
RB
Offset General Purpose Register