word wrap
[libreriscv.git] / openpower / sv / rfc / ls013.mdwn
index 08e7ec363c59074715a4bf897218ec6487b76bad..4b8ac5f8bd5916d3f1ba0314b142c7bb19fb861b 100644 (file)
@@ -61,9 +61,13 @@ TODO
 
 **Notes and Observations**:
 
-1. minimum/maximum instructions are needed for vector reductions, where the SVP64 tree reduction needs a single instruction to work properly.
-2. if you implement any of the FP min/max modes, the rest are not much more hardware.
-3. FP min/max are rather complex to implement in software, the most commonly used FP max function `fmax` from glibc compiled for SFFS is 32 (!) instructions.
+1. minimum/maximum instructions are needed for vector reductions, where the
+    SVP64 tree reduction needs a single instruction to work properly.
+2. if you implement any of the FP min/max modes, the rest are not much more
+    hardware.
+3. FP min/max are rather complex to implement in software, the most commonly
+    used FP max function `fmax` from glibc compiled for SFFS is 32 (!)
+    instructions.
 
 https://gcc.godbolt.org/z/6xba61To6
 
@@ -145,7 +149,8 @@ Add the following entries to:
 | 1110  | fmaxmagnum19[s] FRT, FRA, FRB | IEEE 754-2019                  | FRT = minmaxmag(FRA, FRB, True, fmaxnum19) (2)  |
 | 1111  | fmaxmagc[s] FRT, FRA, FRB     | -                              | FRT = minmaxmag(FRA, FRB, True, fmaxc) (2)      |
 
-Note (1): for the purposes of minNum/maxNum, -0.0 is defined to be less than +0.0. This is left unspecified in IEEE 754-2008.
+Note (1): for the purposes of minNum/maxNum, -0.0 is defined to be less than
+    +0.0. This is left unspecified in IEEE 754-2008.
 
 Note (2): minmaxmag(x, y, cmp, fallback) is defined as:
 
@@ -163,7 +168,8 @@ def minmaxmag(x, y, is_max, fallback):
     return fallback(x, y)
 ```
 
-Note (3): TODO: icr if IEEE 754-2008 has min/maxMagNum like IEEE 754-2019's minimum/maximumMagnitudeNumber
+Note (3): TODO: icr if IEEE 754-2008 has min/maxMagNum like IEEE 754-2019's
+    minimum/maximumMagnitudeNumber
 
 ----------------
 
@@ -180,9 +186,11 @@ Note (3): TODO: icr if IEEE 754-2008 has min/maxMagNum like IEEE 754-2019's mini
     | PO  | FRT | FRA | FRB | FMM[0:2] | XO | FMM[3] |
 ```
 
-Compute the minimum/maximum of FRA and FRB, according to FMM, and store the result in FRT.
+Compute the minimum/maximum of FRA and FRB, according to FMM, and store the
+result in FRT.
 
-Assembly Aliases: see [`FMM` -- Floating Min/Max Mode](#fmm-floating-min-max-mode)
+Assembly Aliases: see
+[`FMM` -- Floating Min/Max Mode](#fmm-floating-min-max-mode)
 
 ----------
 
@@ -197,9 +205,11 @@ Assembly Aliases: see [`FMM` -- Floating Min/Max Mode](#fmm-floating-min-max-mod
     | PO  | FRT | FRA | FRB | FMM[0:2] | XO | FMM[3] |
 ```
 
-Compute the minimum/maximum of FRA and FRB, according to FMM, and store the result in FRT.
+Compute the minimum/maximum of FRA and FRB, according to FMM, and store the
+result in FRT.
 
-Assembly Aliases: see [`FMM` -- Floating Min/Max Mode](#fmm-floating-min-max-mode)
+Assembly Aliases: see
+[`FMM` -- Floating Min/Max Mode](#fmm-floating-min-max-mode)
 
 ----------