Roadmap / LLVM IR constructs

Refused: inline asm cvt.rn.f16x2.e4m3x2 with 2 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

4 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.f16x2.e4m3x2 $0, $1;", "=r,h". The quote is the first sentence of PTX ISA's section on cvt, the instruction the string holds.

Corpus

4 of the 116 corpus files use it (4 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.