Remove blank from NaN string representation
authorV Donaldson <vdonaldson@nvidia.com>
Wed, 1 Sep 2021 01:26:58 +0000 (18:26 -0700)
committerV Donaldson <vdonaldson@nvidia.com>
Fri, 3 Sep 2021 15:09:55 +0000 (08:09 -0700)
commit29c3ef5a0e5f129ee7e0b5416a93484f4ecebf35
tree8481c32724b9f7a5c804a199fbdd90bd1b798f7a
parent12fee64daf576c9f4a91fab8ddd5eb512fa14307
Remove blank from NaN string representation

Flang front end function DumpHexadecimal generates a string
representation of a REAL value.  When the value is a NaN, the string
contains a blank, as in "NaN 0x7fc00000".  This function is used by
lowering to generate a string that is then passed to llvm Support
function convertFromStringSpecials, which does not expect a blank
in the string.  Remove the blank to allow correct recognition of a
NaN by this llvm function.

Note that function DumpHexadecimal is not exercised by the front end
itself.  This functionality is only exercised by code that is not yet
present in llvm.
flang/lib/Evaluate/real.cpp
flang/unittests/Evaluate/real.cpp