[all-commits] [llvm/llvm-project] e0adee: [flang] Correct folding of CSHIFT and EOSHIFT for ...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Jun 3 19:00:11 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e0adee8481623613933551e00adcd9ddea18d889
      https://github.com/llvm/llvm-project/commit/e0adee8481623613933551e00adcd9ddea18d889
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-06-03 (Fri, 03 Jun 2022)

  Changed paths:
    M flang/lib/Evaluate/fold-implementation.h
    M flang/test/Evaluate/folding23.f90
    M flang/test/Evaluate/folding27.f90

  Log Message:
  -----------
  [flang] Correct folding of CSHIFT and EOSHIFT for DIM>1

The algorithm was wrong for higher dimensions, and so were
the expected test results.  Rework.

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




More information about the All-commits mailing list