================ ---------------- nikic wrote: We're still missing dedicated tests for the transform. They should just have cttz + lshr and cttz + ashr without additional instructions. https://github.com/llvm/llvm-project/pull/136696