[all-commits] [llvm/llvm-project] d5074c: [flang] Fix bogus folding error for ISHFT(x, negat...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Oct 22 10:38:43 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d5074c7166647ea1abd78f5bb7fd876cbf0bb7d1
      https://github.com/llvm/llvm-project/commit/d5074c7166647ea1abd78f5bb7fd876cbf0bb7d1
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2021-10-22 (Fri, 22 Oct 2021)

  Changed paths:
    M flang/lib/Evaluate/fold-integer.cpp
    A flang/test/Evaluate/fold-ishft.f90
    M flang/test/Evaluate/folding19.f90

  Log Message:
  -----------
  [flang] Fix bogus folding error for ISHFT(x, negative)

Negative shift counts are of course valid for ISHFT when
shifting to the right.  This patch decouples the folding of
ISHFT from that of SHIFTA/L/R and adds tests.

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




More information about the All-commits mailing list