D111241 added support for extractBits() with zero width. Extend this to extractBitsAsZExtValue() as well for consistency (in which case it will always return zero).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D151788
[APInt] Support zero-width extract in extractBitsAsZExtValue() ClosedPublic Authored by nikic on May 31 2023, 1:17 AM.
Details Summary D111241 added support for extractBits() with zero width. Extend this to extractBitsAsZExtValue() as well for consistency (in which case it will always return zero).
Diff Detail
Event TimelineThis revision is now accepted and ready to land.May 31 2023, 8:04 AM Closed by commit rG42e98c6ae875: [APInt] Support zero-width extract in extractBitsAsZExtValue() (authored by nikic). · Explain WhyMay 31 2023, 8:13 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 527048 llvm/lib/Support/APInt.cpp
llvm/unittests/ADT/APIntTest.cpp
|