diff options
| author | Umang Yadav <29876643+umangyadav@users.noreply.github.com> | 2025-05-22 16:36:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-22 15:36:00 -0500 |
| commit | ffa5ce04d0a5440f939881e0e329a173d486dd68 (patch) | |
| tree | 13a4679e0c8aa994babac7908c1379ab83737ccd /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h | |
| parent | d6d52a4abc71c583bd5391c5c0b36483c65081fe (diff) | |
Add arith expansion of f8E8M0 type for extf/trunc ops (#140332)
F8E8M0 floating type is supposed to represent biased exponent bits of
F32 type in OCP Micro scaling floating point formats.
https://www.opencompute.org/documents/ocp-microscaling-formats-mx-v1-0-spec-final-pdf
This PR expands `arith.truncf` and `arith.extf` to support this
behavior.
For the `arith.truncf` thing to note here is that F8E8M0FNU type has one
NaN representation which is encoded as `0xFF`. Therefore alll kinds of
NaNs and +/-Inf in Float32Type would map to NaN in F8E8M0FNU. F8E8M0FNU
doesn't have a sign bit therefore it is a lossy and irreversible
downcast.
cc: @krzysz00 @MaheshRavishankar @Muzammiluddin-Syed-ECE
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h')
0 files changed, 0 insertions, 0 deletions
