Roadmap / LLVM IR constructs

Refused: inline asm cvt.rn.satfinite.e4m3x2.f32 with 3 operands

Area
LLVM IR constructs
Kind
construct
Level
L0 (card written). Next: L1 needs a Lean model.
Evidence present above the level
None above the level.
Reference
PTX ISA 9.5 #data-movement-and-conversion-instructions-cvt
Quote
Convert a value from one type to another.
Lean declarations
Not stated yet.
Corpus files

3 kernel files (.ll) in the corpus.

Tests
  • MojoProofTest.Corpus
Upstream issue
None filed.
Depends on
No other card.

Rule

The importer refuses a call of inline assembly whose template and constraints are not of a form it accepts (AsmCall.ofText? in Module.check), and the corpus check records the files it refuses in tests/corpus/REFUSALS.tsv with the reason unsupported inline asm "cvt.rn.satfinite.e4m3x2.f32 $0, $1, $2;", "=h,f,f". The quote is the first sentence of PTX ISA's section on cvt, the instruction the string holds.

Corpus

3 of the 116 corpus files use it (3 uses).

Out of scope

Everything: no Lean model exists, and the files that call it are not imported.

Open

A model of the instruction (an intrinsic family with a stated contract) before the importer can accept these files.