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

Chinmay Deshpande via All-commits all-commits at lists.llvm.org
Wed Sep 23 09:29:57 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e28d3f11a8ada5012cf28d4a34f9e70c80d6f34e
      https://github.com/llvm/llvm-project/commit/e28d3f11a8ada5012cf28d4a34f9e70c80d6f34e
  Author: Chinmay Deshpande <chdeshpa at amd.com>
  Date:   2026-09-23 (Wed, 23 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 (#225528)

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.

Assisted by: Codex (Astra)



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