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
52 lines
1.6 KiB
LLVM
52 lines
1.6 KiB
LLVM
; RUN: llc -mtriple=hexagon < %s -pipeliner-experimental-cg=true -terminal-rule=0 | FileCheck %s
|
|
|
|
; Test that the pipeliner cause an assert and correctly pipelines the
|
|
; loop.
|
|
|
|
; CHECK: loop0(.LBB0_[[LOOP:.]],
|
|
; CHECK: .LBB0_[[LOOP]]:
|
|
; CHECK: [[REG0:r([0-9]+)]] = sath([[REG1:r([0-9]+)]])
|
|
; CHECK: memh(r{{[0-9]+}}++#2) = [[REG0]].new
|
|
; CHECK: [[REG1]] =
|
|
; CHECK: endloop0
|
|
|
|
define void @f0(ptr nocapture %a0, ptr nocapture readonly %a1, float %a2, i32 %a3) {
|
|
b0:
|
|
%v0 = icmp sgt i32 %a3, 0
|
|
br i1 %v0, label %b1, label %b2
|
|
|
|
b1: ; preds = %b1, %b0
|
|
%v1 = phi i32 [ %v11, %b1 ], [ 0, %b0 ]
|
|
%v2 = phi ptr [ %v10, %b1 ], [ %a0, %b0 ]
|
|
%v3 = phi ptr [ %v4, %b1 ], [ %a1, %b0 ]
|
|
%v4 = getelementptr inbounds float, ptr %v3, i32 1
|
|
%v5 = load float, ptr %v3, align 4, !tbaa !0
|
|
%v6 = fmul float %v5, %a2
|
|
%v7 = tail call i32 @llvm.hexagon.F2.conv.sf2w(float %v6)
|
|
%v8 = tail call i32 @llvm.hexagon.A2.sath(i32 %v7)
|
|
%v9 = trunc i32 %v8 to i16
|
|
%v10 = getelementptr inbounds i16, ptr %v2, i32 1
|
|
store i16 %v9, ptr %v2, align 2, !tbaa !4
|
|
%v11 = add nuw nsw i32 %v1, 1
|
|
%v12 = icmp eq i32 %v11, %a3
|
|
br i1 %v12, label %b2, label %b1
|
|
|
|
b2: ; preds = %b1, %b0
|
|
ret void
|
|
}
|
|
|
|
; Function Attrs: nounwind readnone
|
|
declare i32 @llvm.hexagon.A2.sath(i32) #0
|
|
|
|
; Function Attrs: nounwind readnone
|
|
declare i32 @llvm.hexagon.F2.conv.sf2w(float) #0
|
|
|
|
attributes #0 = { nounwind readnone }
|
|
|
|
!0 = !{!1, !1, i64 0}
|
|
!1 = !{!"float", !2, i64 0}
|
|
!2 = !{!"omnipotent char", !3, i64 0}
|
|
!3 = !{!"Simple C/C++ TBAA"}
|
|
!4 = !{!5, !5, i64 0}
|
|
!5 = !{!"short", !2, i64 0}
|