[all-commits] [llvm/llvm-project] e337dc: [flang] Fix folding of EXPONENT() intrinsic function

Peter Klausler via All-commits all-commits at lists.llvm.org
Sat Dec 4 11:23:25 PST 2021

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e337dc8bfee0793fdeafd61da3ab658a0822a24c
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2021-12-04 (Sat, 04 Dec 2021)

  Changed paths:
    M flang/include/flang/Evaluate/real.h
    M flang/test/Evaluate/folding07.f90

  Log Message:
  [flang] Fix folding of EXPONENT() intrinsic function

The definition of the EXPONENT() intrinsic function differs by one
from the real arithmetic folding templates concept of an unbiased
exponent, and also needs special handling for zero.  Fix, and add
more tests.

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

More information about the All-commits mailing list