* fixed the support for infinity and nan float literal values in the webassembly

llvm-mc asm writer

git-svn-id: trunk@49213 -
This commit is contained in:
nickysn 2021-04-16 23:40:11 +00:00
parent d53b17cadc
commit 4f828929a3

View File

@ -210,11 +210,11 @@ implementation
if (exponent=(1 shl exponent_bits)-1) then
begin
if fraction=0 then
result:=result+'inf'
result:=result+'infinity'
else
begin
result:=result+'nan';
if fraction<>((int64(1) shl fraction_bits)-1) then
if fraction<>(int64(1) shl (fraction_bits-1)) then
result:=result+':0x'+HexStr(fraction,fraction_hexdigits);
end;
end