From 3546413158037764de683caab938e85f63a8b4ed Mon Sep 17 00:00:00 2001 From: lkcl Date: Fri, 27 May 2022 19:11:52 +0100 Subject: [PATCH] --- openpower/sv/int_fp_mv.mdwn | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/openpower/sv/int_fp_mv.mdwn b/openpower/sv/int_fp_mv.mdwn index 984c7b632..2f08986b5 100644 --- a/openpower/sv/int_fp_mv.mdwn +++ b/openpower/sv/int_fp_mv.mdwn @@ -110,12 +110,12 @@ These are like a variant of `fmvfg` and `oris`, combined. Power ISA currently requires a large number of instructions to get Floating Point constants into registers. `fmvis` on its own is equivalent to BF16 to FP32/64 conversion, -but if followed up by `fishmv` an additional 16 bits of accuracy in the +but if followed up by `frlsi` an additional 16 bits of accuracy in the mantissa may be achieved. *IBM may consider it worthwhile to extend these two instructions to -v3.1 Prefixed (`pfmvis` and `pfishmv`). If so it is recommended that -`pfmvis` load a full FP32 immediate and `pfishmv` extend the lower +v3.1 Prefixed (`pfmvis` and `pfrlsi`). If so it is recommended that +`pfmvis` load a full FP32 immediate and `pfrlsi` extend the lower 32-bits to construct a full FP64 immediate.* ## Load BF16 Immediate @@ -165,9 +165,9 @@ Pseudocode: fp32 = bf16 || [0]*16 FRS = Single_to_Double(fp32) -## Float Immediate, Second Half +## Float Replace Lower-Half Single, Immediate -`fishmv FRS, D` +`frlsi FRS, D` DX-Form: @@ -183,7 +183,7 @@ set the upper 16-bits of an FP32 value, `fishmv` contains the lower 16-bits. The key difference between using `li` and `oris` to construct 32-bit -GPR Immediates and `fishmv` is that the `fmvis` will have converted +GPR Immediates and `frlsi` is that the `fmvis` will have converted the `BF16` to FP64 (Double) format. This is taken into consideration as can be seen in the pseudocode below @@ -205,7 +205,7 @@ Example: # first the upper bits, happens to be +1.0 fmvis f4, 0x3F80 # writes +1.0 to f4 # now write the lower 16 bits of an FP32 -fishmv f4, 0x8000 # writes +1.00390625 to f4 +frlsi f4, 0x8000 # writes +1.00390625 to f4 ``` # Moves -- 2.30.2