RKSimon added a comment. Nice - useful for BMI1 as well do you think? Would use a second register like the AND case but requires a smaller immediate and would allow more load folding opportunities. https://reviews.llvm.org/D36129