* fixed output of 32-bit floating point constants in the llvm-mc asm output

This commit is contained in:
Nikolay Nikolov 2021-09-29 04:57:19 +03:00
parent d84a7d1bde
commit f6b4a54f7d

View File

@ -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;