https://github.com/kuhar commented: This need some tests. I think that lit tests are not super useful because they will check that the lowering is what the lowering is, but maybe a few integration tests would make sense here. https://github.com/llvm/llvm-project/pull/144157