Fix a bug in my prevous commit 50f1aa1db5c59499b40abda1f565a3db1ebd7ee4.
The generated ANDIs in the expansion of pseudo LSLW4/LSLW12/LSR4/LSR12
should only use R16~R31.
Paths
| Differential D96590
[AVR] Fix a bug in 16-bit shifts ClosedPublic Authored by benshi001 on Feb 12 2021, 3:33 AM.
Details
Summary Fix a bug in my prevous commit 50f1aa1db5c59499b40abda1f565a3db1ebd7ee4. The generated ANDIs in the expansion of pseudo LSLW4/LSLW12/LSR4/LSR12
Diff Detail
Event TimelineComment Actions Thank you for the quick patch! I have verified locally that this does indeed fix the bug (my AVR tests pass again), so this looks good to me. This revision is now accepted and ready to land.Feb 13 2021, 9:53 AM Closed by commit rGefb1cb752bf1: [AVR] Fix a bug in 16-bit shifts (authored by benshi001). · Explain WhyFeb 13 2021, 7:55 PM This revision was automatically updated to reflect the committed changes. Comment Actions
Thanks. I have committed it. And you are appreciated to take a look at my patch https://reviews.llvm.org/D96506, it is also about shift optimization. Comment Actions Thank you!
Revision Contents
Diff 323586 llvm/lib/Target/AVR/AVRInstrInfo.td
llvm/test/CodeGen/AVR/shift.ll
|