Stores a word of data from a floating-point register into a specified location in memory.
The stfsx instruction converts the contents of floating-point register (FPR) FRS to single-precision and stores the result into the word of storage addressed by the effective address (EA).
If general-purpose register (GPR) RA is not 0, the EA is the sum of the contents of GPR RA and GPR RB. If GPR RA is 0, then the EA is the contents of GPR RB.
The stfsx instruction has one syntax form and does not affect the Floating-Point Status and Control Register or Condition Register Field 0.
|FRS||Specifies source floating-point register of stored data.|
|RA||Specifies source general-purpose register for EA calculation.|
|RB||Specifies source general-purpose register for EA calculation.|
The following code stores the single-precision contents of FPR 6 into a location in memory:
.csect data[rw] buffer: .long 0 # Assume FPR 6 contains 0x4865 6C6C 6F20 776F. # Assume GPR 4 contains the address of buffer. .csect text[pr] stfsx 6,0,4 # buffer now contains 0x432B 6363.
Floating-Point Load and Store Instructions.