From 41bd71b1c67d008fc9feca2e1e8a26d5f02a5571 Mon Sep 17 00:00:00 2001 From: lkcl Date: Wed, 25 May 2022 11:02:23 +0100 Subject: [PATCH] --- openpower/sv/int_fp_mv.mdwn | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/openpower/sv/int_fp_mv.mdwn b/openpower/sv/int_fp_mv.mdwn index 034907ede..8d0c3a05e 100644 --- a/openpower/sv/int_fp_mv.mdwn +++ b/openpower/sv/int_fp_mv.mdwn @@ -48,19 +48,19 @@ Therefore, we are proposing adding: * FPR <-> GPR combined data-transfer/conversion instructions that do Integer <-> FP conversions -If we're adding new Integer <-> FP conversion instructions, we may -as well take this opportunity to modernise the instructions and make them -well suited for common/important conversion sequences: +If adding new Integer <-> FP conversion instructions, +the opportunity may be taken to modernise the instructions and make them +well-suited for common/important conversion sequences: -* standard Integer -> FP IEEE754 conversion (used by most languages and CPUs) -* standard OpenPower FP -> Integer conversion (saturation with NaN - converted to minimum valid integer) -* Java FP -> Integer conversion (saturation with NaN converted to 0) -* JavaScript FP -> Integer conversion (modular with Inf/NaN converted to 0) +* **standard** - used by most languages and CPUs +* **standard OpenPOWER** - saturation with NaN + converted to minimum valid integer +* **Java** - saturation with NaN converted to 0 +* **JavaScript** - modulo wrapping with Inf/NaN converted to 0 The assembly listings in the [[int_fp_mv/appendix]] show how costly -some of these language-specific conversions are: Javascript is 35 -scalar instructions, including four branches. +some of these language-specific conversions are: Javascript is 32 +scalar instructions, including seven branch instructions. ## FP -> Integer conversions -- 2.30.2