From: programmerjake Date: Fri, 4 Jun 2021 01:56:38 +0000 (+0100) Subject: (no commit message) X-Git-Tag: DRAFT_SVP64_0_1~815 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=56deb3c4727ab7591ccdec0aeba822431378d388;p=libreriscv.git --- diff --git a/openpower/sv/int_fp_mv.mdwn b/openpower/sv/int_fp_mv.mdwn index 0b8c63bd4..a5f1053c6 100644 --- a/openpower/sv/int_fp_mv.mdwn +++ b/openpower/sv/int_fp_mv.mdwn @@ -64,7 +64,9 @@ This conversion is outlined in the IEEE754 specification. It is used by nearly all programming languages and CPUs. In the case of OpenPOWER, the rounding mode is read from FPSCR -# standard OpenPower FP -> Integer conversion +## FP -> Integer conversions + +### standard OpenPower FP -> Integer conversion TODO, explain this further, make this a complete sentence: "saturation with NaN converted to minimum valid integer" @@ -74,7 +76,7 @@ TODO, explain this further, make this a complete sentence: * rounding mode read from FPSCR * rounding mode is always truncate -## Rust FP -> Integer conversion +### Rust FP -> Integer conversion TODO, explain this further, the following is not a complete sentence, "saturation with NaN converted to 0" @@ -98,14 +100,14 @@ following, all of which are supported in XYZ" something like that) instructions when decorated with [the `SaturatedConversion` decorator](https://www.khronos.org/registry/spir-v/specs/unified1/SPIRV.html#_a_id_decoration_a_decoration). -## JavaScript FP -> Integer conversion +### JavaScript FP -> Integer conversion modular with Inf/NaN converted to 0 TODO, explain this further, it is not a sentence: "Semantics required by JavaScript" -## Other languages +### Other languages TODO: review and investigate other language semantics