[all-commits] [llvm/llvm-project] e0daa2: [flang] Fix ISHFTC argument value check

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Mar 2 09:21:51 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e0daa2ebd39c5ce542a6af87e1e3ce68e91604d8
      https://github.com/llvm/llvm-project/commit/e0daa2ebd39c5ce542a6af87e1e3ce68e91604d8
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-03-02 (Thu, 02 Mar 2023)

  Changed paths:
    M flang/lib/Evaluate/fold-integer.cpp
    M flang/test/Semantics/ishftc.f90

  Log Message:
  -----------
  [flang] Fix ISHFTC argument value check

The code that visits all pairs of constant SHIFT= and SIZE= arguments
in an array-valued call to the ISHFTC intrinsic function had a bad loop
test that affected the case where one of these arguments was scalar and
the other was not.  Fix it, and add tests.

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




More information about the All-commits mailing list