[all-commits] [llvm/llvm-project] 29c3ef: Remove blank from NaN string representation

vdonaldson via All-commits all-commits at lists.llvm.org
Fri Sep 3 08:10:09 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 29c3ef5a0e5f129ee7e0b5416a93484f4ecebf35
      https://github.com/llvm/llvm-project/commit/29c3ef5a0e5f129ee7e0b5416a93484f4ecebf35
  Author: V Donaldson <vdonaldson at nvidia.com>
  Date:   2021-09-03 (Fri, 03 Sep 2021)

  Changed paths:
    M flang/lib/Evaluate/real.cpp
    M flang/unittests/Evaluate/real.cpp

  Log Message:
  -----------
  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.




More information about the All-commits mailing list