[llvm] [AMDGPU][True16] Upstream more true16-related testing changes (NFC) (PR #208320)

Domenic Nutile via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 9 09:47:54 PDT 2026


================
@@ -0,0 +1,413 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN:  llc -amdgpu-scalarize-global-loads=false  -march=amdgcn -mcpu=fiji -mattr=-flat-for-global -verify-machineinstrs < %s | FileCheck -check-prefixes=VI %s
+; RUN:  llc -amdgpu-scalarize-global-loads=false  -march=amdgcn -mcpu=gfx1010 -mattr=-flat-for-global -verify-machineinstrs < %s | FileCheck -check-prefixes=GFX10 %s
+; RUN:  llc -amdgpu-scalarize-global-loads=false  -march=amdgcn -mcpu=gfx1100 -mattr=+real-true16 -mattr=-flat-for-global -verify-machineinstrs < %s | FileCheck -check-prefixes=GFX11,GFX11-TRUE16 %s
+; RUN:  llc -amdgpu-scalarize-global-loads=false  -march=amdgcn -mcpu=gfx1100 -mattr=-real-true16 -mattr=-flat-for-global -verify-machineinstrs < %s | FileCheck -check-prefixes=GFX11,GFX11-FAKE16 %s
+
+declare half @llvm.amdgcn.ldexp.f16(half %a, i32 %b)
----------------
saxlungs wrote:

That makes sense. I wasn't aware of the history behind why this test was removed from the upstream. I think the existing `CodeGen/AMDGPU/llvm.ldexp.ll` test covers almost everything that's in this test file anyway. I think the right idea here is to move the couple of small additions into that file instead of adding a new one, so I went ahead and did that

https://github.com/llvm/llvm-project/pull/208320


More information about the llvm-commits mailing list