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
tests/corpus/mgemm/g_matmul_kernel_naive_float8_e4m3fn_bfloat16_bfloat16_True_16_c159_00c8af24fa246f7a.nvptx.lltests/corpus/mgemm/g_multistage_gemm_kernel_float8_e4m3fn_bfloat16_bfloat16_True_2c1c_8e92f2bb57c3c342.nvptx.lltests/corpus/mgemm/g_multistage_gemm_split_k_kernel_float8_e4m3fn_bfloat16_bfloat16_T_c45dbbac780aa7c3.nvptx.ll
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.