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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D112244
[flang] Fix bogus folding error for ISHFT(x, negative) ClosedPublic Authored by klausler on Oct 21 2021, 10:52 AM.
Details Summary Negative shift counts are of course valid for ISHFT when
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 21 2021, 4:40 PM Closed by commit rGd5074c716664: [flang] Fix bogus folding error for ISHFT(x, negative) (authored by klausler). · Explain WhyOct 22 2021, 10:38 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 381598 flang/lib/Evaluate/fold-integer.cpp
flang/test/Evaluate/fold-ishft.f90
flang/test/Evaluate/folding19.f90
|