[all-commits] [llvm/llvm-project] 810037: [flang] Don't force SET_EXPONENT(I=...) argument t...

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Oct 6 11:20:52 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 81003744374dd2a75ae8dd190cdf2188cc086820
      https://github.com/llvm/llvm-project/commit/81003744374dd2a75ae8dd190cdf2188cc086820
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-10-06 (Thu, 06 Oct 2022)

  Changed paths:
    M flang/include/flang/Evaluate/real.h
    M flang/lib/Evaluate/fold-real.cpp
    M flang/lib/Evaluate/real.cpp

  Log Message:
  -----------
  [flang] Don't force SET_EXPONENT(I=...) argument to integer(4)

The implementation of the folding code for SET_EXPONENT() was written
in such a fashion as to convert the I= actual argument value to a 32-bit
integer.  Which is usually not a problem, but it's not always correct
and a test case ran into trouble with it.  Fix to allow any kind of
INTEGER without conversion.

Differential Revision: https://reviews.llvm.org/D135203




More information about the All-commits mailing list