This is a lshr equivalent to D122340 - if we don't demand any of the additional sign bits introduced by the ashr, the lshr can be treated as an ashr and we can remove the shift entirely if we only demand an already known sign bit.
If people prefer, I can simplify the code further, but I figured it made sense to try to keep it similar to the ashr fold for comparison.
Another step towards PR21929
I believe the same applies here.