Patryk27 wrote:
Minimized test case:
```llvm
define i16 @main(i8 %a, i16 %b) {
%1 = zext i8 %a to i16
%2 = sub nsw i16 %1, %b
%3 = and i16 %2, 1
ret i16 %3
}
```
I'll play a bit and see if I can dig to the underlying issue.
https://github.com/llvm/llvm-project/pull/132398