CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
87 lines
2.7 KiB
LLVM
87 lines
2.7 KiB
LLVM
; RUN: llc -mtriple=hexagon-unknown-elf < %s | FileCheck %s
|
|
|
|
; CHECK-LABEL: ldf
|
|
; CHECK: memw(r{{[0-9]+}}++#4)
|
|
; CHECK: memw(r{{[0-9]+}}++#4)
|
|
define float @ldf(ptr nocapture readonly %x, ptr nocapture readonly %y) local_unnamed_addr #0 {
|
|
entry:
|
|
br label %for.body
|
|
|
|
for.body:
|
|
%arrayidx.phi = phi ptr [ %x, %entry ], [ %arrayidx.inc, %for.body ]
|
|
%arrayidx1.phi = phi ptr [ %y, %entry ], [ %arrayidx1.inc, %for.body ]
|
|
%i.09 = phi i32 [ 0, %entry ], [ %inc, %for.body ]
|
|
%acc.08 = phi float [ 0.000000e+00, %entry ], [ %add, %for.body ]
|
|
%0 = load float, ptr %arrayidx.phi, align 4
|
|
%1 = load float, ptr %arrayidx1.phi, align 4
|
|
%mul = fmul contract float %0, %1
|
|
%add = fadd contract float %acc.08, %mul
|
|
%inc = add nuw nsw i32 %i.09, 1
|
|
%exitcond = icmp eq i32 %inc, 1024
|
|
%arrayidx.inc = getelementptr float, ptr %arrayidx.phi, i32 1
|
|
%arrayidx1.inc = getelementptr float, ptr %arrayidx1.phi, i32 1
|
|
br i1 %exitcond, label %for.end, label %for.body
|
|
|
|
for.end:
|
|
ret float %add
|
|
}
|
|
|
|
; CHECK-LABEL: ldd
|
|
; CHECK: memd(r{{[0-9]+}}++#8)
|
|
; CHECK: memd(r{{[0-9]+}}++#8)
|
|
define double @ldd(ptr nocapture readonly %x, ptr nocapture readonly %y) local_unnamed_addr #0 {
|
|
entry:
|
|
br label %for.body
|
|
|
|
for.body:
|
|
%arrayidx.phi = phi ptr [ %x, %entry ], [ %arrayidx.inc, %for.body ]
|
|
%arrayidx1.phi = phi ptr [ %y, %entry ], [ %arrayidx1.inc, %for.body ]
|
|
%i.09 = phi i32 [ 0, %entry ], [ %inc, %for.body ]
|
|
%acc.08 = phi double [ 0.000000e+00, %entry ], [ %add, %for.body ]
|
|
%0 = load double, ptr %arrayidx.phi, align 8
|
|
%1 = load double, ptr %arrayidx1.phi, align 8
|
|
%mul = fmul contract double %0, %1
|
|
%add = fadd contract double %acc.08, %mul
|
|
%inc = add nuw nsw i32 %i.09, 1
|
|
%exitcond = icmp eq i32 %inc, 1024
|
|
%arrayidx.inc = getelementptr double, ptr %arrayidx.phi, i32 1
|
|
%arrayidx1.inc = getelementptr double, ptr %arrayidx1.phi, i32 1
|
|
br i1 %exitcond, label %for.end, label %for.body
|
|
|
|
for.end:
|
|
ret double %add
|
|
}
|
|
|
|
; CHECK-LABEL: stf
|
|
; CHECK: memw(r{{[0-9]+}}++#4)
|
|
define ptr @stf(ptr returned %p) local_unnamed_addr #0 {
|
|
entry:
|
|
br label %for.body
|
|
|
|
for.body:
|
|
%arrayidx.phi = phi ptr [ %arrayidx.inc, %for.body ], [ %p, %entry ]
|
|
%call = tail call float @foof() #2
|
|
store float %call, ptr %arrayidx.phi, align 8
|
|
%arrayidx.inc = getelementptr float, ptr %arrayidx.phi, i32 1
|
|
br label %for.body
|
|
}
|
|
|
|
declare float @foof() local_unnamed_addr #1
|
|
|
|
; CHECK-LABEL: std
|
|
; CHECK: memd(r{{[0-9]+}}++#8)
|
|
define ptr @std(ptr returned %p) local_unnamed_addr #0 {
|
|
entry:
|
|
br label %for.body
|
|
|
|
for.body:
|
|
%arrayidx.phi = phi ptr [ %arrayidx.inc, %for.body ], [ %p, %entry ]
|
|
%call = tail call double @food() #2
|
|
store double %call, ptr %arrayidx.phi, align 8
|
|
%arrayidx.inc = getelementptr double, ptr %arrayidx.phi, i32 1
|
|
br label %for.body
|
|
}
|
|
|
|
declare double @food() local_unnamed_addr #1
|
|
|