Files
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

104 lines
3.2 KiB
LLVM

; RUN: llc -mtriple=hexagon < %s | FileCheck %s
; CHECK-LABEL: f0:
; CHECK: r{{[1-9]+:[0-9]+}} = memd(r{{[0-9]*}}++#{{[0-9]}}:circ(m{{[01]}}))
define i64 @f0(ptr %a0) {
b0:
%v0 = alloca i64, align 8
%v1 = getelementptr inbounds i64, ptr %a0, i32 1
store i64 0, ptr %v0, align 8, !tbaa !0
%v4 = call ptr @llvm.hexagon.circ.ldd(ptr %v1, ptr %v0, i32 150996984, i32 8)
%v5 = load i64, ptr %v0, align 8, !tbaa !0
ret i64 %v5
}
; Function Attrs: argmemonly nounwind
declare ptr @llvm.hexagon.circ.ldd(ptr, ptr, i32, i32) #0
; CHECK-LABEL: f1:
; CHECK: r{{[0-9]*}} = memb(r{{[0-9]*}}++#{{[0-9]}}:circ(m{{[01]}}))
define signext i8 @f1(ptr %a0) {
b0:
%v0 = alloca i8, align 1
%v1 = getelementptr inbounds i8, ptr %a0, i32 1
store i8 0, ptr %v0, align 1, !tbaa !4
%v2 = call ptr @llvm.hexagon.circ.ldb(ptr %v1, ptr %v0, i32 16777471, i32 1)
%v3 = load i8, ptr %v0, align 1, !tbaa !4
ret i8 %v3
}
; Function Attrs: argmemonly nounwind
declare ptr @llvm.hexagon.circ.ldb(ptr, ptr, i32, i32) #0
; CHECK-LABEL: f2:
; CHECK: r{{[0-9]*}} = memub(r{{[0-9]*}}++#{{[0-9]}}:circ(m{{[01]}}))
define signext i8 @f2(ptr %a0) {
b0:
%v0 = alloca i8, align 1
%v1 = getelementptr inbounds i8, ptr %a0, i32 1
store i8 0, ptr %v0, align 1, !tbaa !4
%v2 = call ptr @llvm.hexagon.circ.ldub(ptr %v1, ptr %v0, i32 16777471, i32 1)
%v3 = load i8, ptr %v0, align 1, !tbaa !4
ret i8 %v3
}
; Function Attrs: argmemonly nounwind
declare ptr @llvm.hexagon.circ.ldub(ptr, ptr, i32, i32) #0
; CHECK-LABEL: f3:
; CHECK: r{{[0-9]*}} = memh(r{{[0-9]*}}++#{{[0-9]}}:circ(m{{[01]}}))
define signext i16 @f3(ptr %a0) {
b0:
%v0 = alloca i16, align 2
%v1 = getelementptr inbounds i16, ptr %a0, i32 1
store i16 0, ptr %v0, align 2, !tbaa !5
%v4 = call ptr @llvm.hexagon.circ.ldh(ptr %v1, ptr %v0, i32 33554942, i32 2)
%v5 = load i16, ptr %v0, align 2, !tbaa !5
ret i16 %v5
}
; Function Attrs: argmemonly nounwind
declare ptr @llvm.hexagon.circ.ldh(ptr, ptr, i32, i32) #0
; CHECK-LABEL: f4:
; CHECK: r{{[0-9]*}} = memuh(r{{[0-9]*}}++#{{[0-9]}}:circ(m{{[01]}}))
define signext i16 @f4(ptr %a0) {
b0:
%v0 = alloca i16, align 2
%v1 = getelementptr inbounds i16, ptr %a0, i32 1
store i16 0, ptr %v0, align 2, !tbaa !5
%v4 = call ptr @llvm.hexagon.circ.lduh(ptr %v1, ptr %v0, i32 33554942, i32 2)
%v5 = load i16, ptr %v0, align 2, !tbaa !5
ret i16 %v5
}
; Function Attrs: argmemonly nounwind
declare ptr @llvm.hexagon.circ.lduh(ptr, ptr, i32, i32) #0
; CHECK-LABEL: f5:
; CHECK: r{{[0-9]*}} = memw(r{{[0-9]*}}++#{{[0-9]}}:circ(m{{[01]}}))
define i32 @f5(ptr %a0) {
b0:
%v0 = alloca i32, align 4
%v1 = getelementptr inbounds i32, ptr %a0, i32 1
store i32 0, ptr %v0, align 4, !tbaa !7
%v4 = call ptr @llvm.hexagon.circ.ldw(ptr %v1, ptr %v0, i32 50332668, i32 4)
%v5 = load i32, ptr %v0, align 4, !tbaa !7
ret i32 %v5
}
; Function Attrs: argmemonly nounwind
declare ptr @llvm.hexagon.circ.ldw(ptr, ptr, i32, i32) #0
attributes #0 = { argmemonly nounwind }
!0 = !{!1, !1, i64 0}
!1 = !{!"long long", !2, i64 0}
!2 = !{!"omnipotent char", !3, i64 0}
!3 = !{!"Simple C/C++ TBAA"}
!4 = !{!2, !2, i64 0}
!5 = !{!6, !6, i64 0}
!6 = !{!"short", !2, i64 0}
!7 = !{!8, !8, i64 0}
!8 = !{!"long", !2, i64 0}