[Mlir-commits] [mlir] [mlir][arith] Fold scaling_extf and scaling_truncf with constant operands (PR #215123)

Tim Gymnich llvmlistbot at llvm.org
Thu Aug 13 08:05:43 PDT 2026


tgymnich wrote:

Doing the other FP types as a follow up sounds good to me.
For the sake of folding we can assume `scaling_extf` will always extract the scale exponent, as defined in the ocp mxfp spec and implemented for `--arith-expand=include-f8e8m0`.

The exact behavior of `arith.truncf` remains undefined / up for discussion.

https://github.com/llvm/llvm-project/pull/215123


More information about the Mlir-commits mailing list