From f6b4a54f7d2de15793e3da1a477d1ef274f31cb4 Mon Sep 17 00:00:00 2001 From: Nikolay Nikolov Date: Wed, 29 Sep 2021 04:57:19 +0300 Subject: [PATCH] * fixed output of 32-bit floating point constants in the llvm-mc asm output --- compiler/wasm32/agllvmmc.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/wasm32/agllvmmc.pas b/compiler/wasm32/agllvmmc.pas index 80935e4c9d..3184b096cd 100644 --- a/compiler/wasm32/agllvmmc.pas +++ b/compiler/wasm32/agllvmmc.pas @@ -153,7 +153,7 @@ implementation end; end else - result:=result+'0x1.'+HexStr(fraction,fraction_hexdigits)+'p'+tostr(exponent-exponent_bias); + result:=result+'0x1.'+HexStr(fraction shl (fraction_hexdigits*4-fraction_bits),fraction_hexdigits)+'p'+tostr(exponent-exponent_bias); end; function constsingle(s: single): ansistring;