nikic wrote: > https://godbolt.org/z/xh1aToWvx Ideally we would generate ``` define i64 @tgt (i32 %x) { %mask = and i32 %x, 2 %19 = add i32 %mask, 4 %20 = zext i32 %19 to i64 ret i64 %20 } ``` in this case. https://github.com/llvm/llvm-project/pull/100437