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
43 lines
1.5 KiB
LLVM
43 lines
1.5 KiB
LLVM
; RUN: llc -mtriple=hexagon < %s | FileCheck %s
|
|
;
|
|
; Make sure that the A2_andp is not split.
|
|
;
|
|
; CHECK: loop0([[LOOP:.LBB[_0-9]+]],{{.*}})
|
|
; CHECK: [[LOOP]]:
|
|
; CHECK: and(r{{[0-9]+}}:{{[0-9]+}},r{{[0-9]+}}:{{[0-9]+}})
|
|
|
|
target triple = "hexagon"
|
|
|
|
define void @fred(i64 %a0, i64 %a1, i64 %a2, ptr nocapture %a3, i32 %a4) local_unnamed_addr #0 {
|
|
b5:
|
|
%v6 = icmp sgt i32 %a4, 0
|
|
br i1 %v6, label %b7, label %b20
|
|
|
|
b7: ; preds = %b7, %b5
|
|
%v8 = phi ptr [ %v16, %b7 ], [ %a3, %b5 ]
|
|
%v9 = phi i32 [ %v18, %b7 ], [ 0, %b5 ]
|
|
%v10 = phi i64 [ %v17, %b7 ], [ %a0, %b5 ]
|
|
%v11 = tail call i64 @llvm.hexagon.A2.andp(i64 %v10, i64 1085102592571150095)
|
|
%v12 = tail call i32 @llvm.hexagon.A2.vcmpbgtu(i64 %a1, i64 %v11)
|
|
%v13 = tail call i64 @llvm.hexagon.A2.vsubub(i64 %v11, i64 %a1)
|
|
%v14 = and i32 %v12, 255
|
|
%v15 = tail call i64 @llvm.hexagon.C2.vmux(i32 %v14, i64 %a2, i64 %v13)
|
|
store i64 %v15, ptr %v8, align 8
|
|
%v16 = getelementptr i64, ptr %v8, i32 1
|
|
%v17 = load i64, ptr %v16, align 8
|
|
%v18 = add nuw nsw i32 %v9, 1
|
|
%v19 = icmp eq i32 %v18, %a4
|
|
br i1 %v19, label %b20, label %b7
|
|
|
|
b20: ; preds = %b7, %b5
|
|
ret void
|
|
}
|
|
|
|
declare i64 @llvm.hexagon.A2.andp(i64, i64) #1
|
|
declare i32 @llvm.hexagon.A2.vcmpbgtu(i64, i64) #1
|
|
declare i64 @llvm.hexagon.A2.vsubub(i64, i64) #1
|
|
declare i64 @llvm.hexagon.C2.vmux(i32, i64, i64) #1
|
|
|
|
attributes #0 = { nounwind "target-cpu"="hexagonv60" }
|
|
attributes #1 = { nounwind readnone }
|