[flang-commits] [PATCH] D112244: [flang] Fix bogus folding error for ISHFT(x, negative)

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Oct 21 10:52:48 PDT 2021


klausler created this revision.
klausler added reviewers: schweitz, jeanPerier.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a reviewer: sscalpone.
klausler requested review of this revision.

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.


https://reviews.llvm.org/D112244

Files:
  flang/lib/Evaluate/fold-integer.cpp
  flang/test/Evaluate/fold-ishft.f90
  flang/test/Evaluate/folding19.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112244.381326.patch
Type: text/x-patch
Size: 6159 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20211021/40112658/attachment.bin>


More information about the flang-commits mailing list