goldsteinn wrote: Just a thought, but I think this would end up with a LOT less code duplication if you used templates for the implementations of int/fp CR helpers. https://github.com/llvm/llvm-project/pull/111544