曾鈜寬 Tseng Hung Kuan
曾鈜寬 Tseng Hung Kuan
Thanks both. That answers the hardware question, and @tgymnich is right that my example did not show what I claimed it showed. Everything below is on `11799583db91`. ### Correcting my...
Ping on the question above -- it is down to one decision, and I am happy to write either patch: **Is `arith.truncf` to `f8E8M0FNU` round-to-nearest-even like every other `truncf`, or...
That works for me, and it is better than either of the two answers I offered: carrying the rounding mode in the IR settles the question without anyone having to...
Narrowing this, after @tgymnich's answer in #215123: the scaling ops themselves are no longer in question. `arith.scaling_extf` / `arith.scaling_truncf` take the scale's exponent, per the OCP MXFP spec, whatever `arith.truncf`...
Taking the naming correction: `toward_zero` it is (MLIR spells it without the `s` -- `ArithBase.td:186`). On the substance, this is now a straight disagreement with @tgymnich, who said in #215123...
Thanks -- §7.12.6 and §7.6.3 are the piece I was missing. The argument I was weighing was "OCP defines an MX scale as `E8M0`, so the op takes an exponent",...
@tgymnich a nudge on the question above. After @krzysz00's CDNA5 references you have not said whether you still read the scaling ops as exponent-only, and the follow-up work is waiting...
Correction to my previous comment. I wrote "every existing test keeps its numbers"; that is true for `f8E8M0FNU` scales, which is what I actually checked, and it is not true...
Sent as #217892, for the `in / scale` reading. It is deliberately the smaller half of what this thread covers: only the two generic expansions in `ExpandOps.cpp` and the two...
Ping on the question above, and one more data point for it: the sign half is not specific to `f8E8M0FNU`. `semFloat8E5M3FNU` also has `hasSignedRepr == false`, and converting a negative...