dfukalov wrote: > Here is a test case that your patch will break because it does not handle +0/-0 correctly. > Yes, you're right, thanks! Now it checks for +0/-0 float point imm and doesn't use its reg now. https://github.com/llvm/llvm-project/pull/131146