[all-commits] [llvm/llvm-project] e01513: [AMDGPU] Fall back for FP8-to-half conversions wit...

Chinmay Deshpande via All-commits all-commits at lists.llvm.org
Tue Sep 22 14:58:13 PDT 2026


  Branch: refs/heads/users/chinmaydd/fix-fp8-2
  Home:   https://github.com/llvm/llvm-project
  Commit: e0151307066dbfdc94a679e81ae214922c2bb00f
      https://github.com/llvm/llvm-project/commit/e0151307066dbfdc94a679e81ae214922c2bb00f
  Author: Chinmay Deshpande <chdeshpa at amd.com>
  Date:   2026-09-22 (Tue, 22 Sep 2026)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/test/CodeGen/AMDGPU/arbitrary-fp-from-float-fp8-f16-hw.ll

  Log Message:
  -----------
  [AMDGPU] Fall back for FP8-to-half conversions without native support

The custom v2i8 source action also handles half results on gfx950, which
has native OCP FP8-to-f32 conversions but lacks FP8-to-f16 instructions.
Converting FP8 vectors to half therefore reached lowerFromFP8 and asserted
that FP8F16ConversionInsts was available.

Use generic legalization for half results when the subtarget lacks the
required instructions. Preserve native f32 conversions and native f16
conversions on targets that support them.

Add a gfx950 run line to the existing FP8-to-f16 test, which already covers
both OCP encodings for scalars and for vectors that widen or split into
pairs.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list