llvm-project/llvm/test/CodeGen/AMDGPU/global-smrd-unknown.ll
Matt Arsenault 6705d812b8
AMDGPU: Replace ptr addrspace(1) undefs with poison (#130900)
Many tests use store to undef as a placeholder use, so just replace
all of these with poison.
2025-03-13 08:25:02 +07:00

21 lines
851 B
LLVM

; RUN: llc -mtriple=amdgcn--amdhsa -mcpu=fiji -memdep-block-scan-limit=1 -amdgpu-scalarize-global-loads < %s | FileCheck -enable-var-scope -check-prefix=GCN %s
; GCN-LABEL: {{^}}unknown_memdep_analysis:
; GCN: flat_load_dword
; GCN: flat_load_dword
; GCN: flat_store_dword
define void @unknown_memdep_analysis(ptr addrspace(1) nocapture readonly %arg, float %arg1) #0 {
bb:
%tmp53 = load float, ptr addrspace(1) poison, align 4
%tmp54 = getelementptr inbounds float, ptr addrspace(1) %arg, i32 31
%tmp55 = load float, ptr addrspace(1) %tmp54, align 4
%tmp56 = tail call float @llvm.fmuladd.f32(float %arg1, float %tmp53, float %tmp55)
store float %tmp56, ptr addrspace(1) poison, align 4
ret void
}
declare float @llvm.fmuladd.f32(float, float, float) #1
attributes #0 = { nounwind }
attributes #1 = { nounwind readnone speculatable }