From 763a74315adf9b265ce681f0ee6da24a176a08e7 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Fri, 14 Apr 2023 18:46:56 -0700 Subject: [PATCH] word wrap --- openpower/sv/rfc/ls013.mdwn | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/openpower/sv/rfc/ls013.mdwn b/openpower/sv/rfc/ls013.mdwn index 08e7ec363..4b8ac5f8b 100644 --- a/openpower/sv/rfc/ls013.mdwn +++ b/openpower/sv/rfc/ls013.mdwn @@ -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) ---------- -- 2.30.2