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
39 lines
1.2 KiB
LLVM
39 lines
1.2 KiB
LLVM
; RUN: llc -mtriple=hexagon -verify-machineinstrs < %s | FileCheck %s
|
|
|
|
; Check for sane output.
|
|
; CHECK: vmpyweh
|
|
|
|
target triple = "hexagon"
|
|
|
|
declare i32 @llvm.hexagon.S2.clb(i32) #0
|
|
declare i32 @llvm.hexagon.S2.asl.r.r(i32, i32) #0
|
|
declare i32 @llvm.hexagon.S2.vrndpackwh(i64) #0
|
|
declare i64 @llvm.hexagon.M2.mmpyl.s1(i64, i64) #0
|
|
|
|
define i64 @fred(i32 %a0, i32 %a1) local_unnamed_addr #1 {
|
|
b2:
|
|
br i1 undef, label %b15, label %b3
|
|
|
|
b3: ; preds = %b2
|
|
%v4 = tail call i32 @llvm.hexagon.S2.clb(i32 %a1) #0
|
|
%v5 = add nsw i32 %v4, -32
|
|
%v6 = zext i32 %v5 to i64
|
|
%v7 = shl nuw i64 %v6, 32
|
|
%v8 = or i64 %v7, 0
|
|
%v9 = tail call i32 @llvm.hexagon.S2.asl.r.r(i32 %a0, i32 0)
|
|
%v10 = tail call i32 @llvm.hexagon.S2.vrndpackwh(i64 %v8)
|
|
%v11 = sext i32 %v9 to i64
|
|
%v12 = sext i32 %v10 to i64
|
|
%v13 = tail call i64 @llvm.hexagon.M2.mmpyl.s1(i64 %v11, i64 %v12)
|
|
%v14 = and i64 %v13, 4294967295
|
|
br label %b15
|
|
|
|
b15: ; preds = %b3, %b2
|
|
%v16 = phi i64 [ %v14, %b3 ], [ 0, %b2 ]
|
|
%v17 = or i64 0, %v16
|
|
ret i64 %v17
|
|
}
|
|
|
|
attributes #0 = { nounwind readnone }
|
|
attributes #1 = { nounwind "target-cpu"="hexagonv55" }
|