https://github.com/davemgreen commented: Can you add these two tests too: https://godbolt.org/z/G1Ma7Gd9v. They are simpler and don't involve scalarization of the predicate (which will hopefully be rare). https://github.com/llvm/llvm-project/pull/113158