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
68 lines
2.1 KiB
LLVM
68 lines
2.1 KiB
LLVM
; RUN: llc -mtriple=aarch64 -mattr=+v8.9a --global-isel=0 < %s | FileCheck %s
|
|
; RUN: llc -mtriple=aarch64 -mattr=+v8.9a --global-isel=1 --global-isel-abort=1 < %s | FileCheck %s
|
|
|
|
@a = internal global ptr null, align 8
|
|
@b = external global ptr, align 8
|
|
|
|
define void @test(ptr %i, i32 %j) nounwind ssp {
|
|
entry:
|
|
; CHECK-LABEL: @test
|
|
%j.addr = alloca i32, align 4
|
|
store i32 %j, ptr %j.addr, align 4, !tbaa !0
|
|
%tmp = bitcast ptr %j.addr to ptr
|
|
|
|
%i.next = getelementptr i8, ptr %i, i64 2
|
|
|
|
; Verify prefetching works for all the different kinds of pointers we might
|
|
; want to prefetch.
|
|
|
|
; CHECK: prfm pldl1keep,
|
|
call void @llvm.aarch64.prefetch(ptr null, i32 0, i32 0, i32 0, i32 1)
|
|
|
|
; CHECK: prfum pldl1keep,
|
|
call void @llvm.aarch64.prefetch(ptr %tmp, i32 0, i32 0, i32 0, i32 1)
|
|
|
|
; CHECK: prfm pldl1keep,
|
|
call void @llvm.aarch64.prefetch(ptr %i, i32 0, i32 0, i32 0, i32 1)
|
|
|
|
; CHECK: prfum pldl1keep,
|
|
call void @llvm.aarch64.prefetch(ptr %i.next, i32 0, i32 0, i32 0, i32 1)
|
|
|
|
; CHECK: prfm pldl1keep,
|
|
call void @llvm.aarch64.prefetch(ptr @a, i32 0, i32 0, i32 0, i32 1)
|
|
|
|
; CHECK: prfm pldl1keep,
|
|
call void @llvm.aarch64.prefetch(ptr @b, i32 0, i32 0, i32 0, i32 1)
|
|
|
|
; Verify that we can generate every single valid prefetch value.
|
|
|
|
; CHECK: prfm pstl1keep,
|
|
call void @llvm.aarch64.prefetch(ptr null, i32 1, i32 0, i32 0, i32 1)
|
|
|
|
; CHECK: prfm pldl2keep,
|
|
call void @llvm.aarch64.prefetch(ptr null, i32 0, i32 1, i32 0, i32 1)
|
|
|
|
; CHECK: prfm pldl3keep,
|
|
call void @llvm.aarch64.prefetch(ptr null, i32 0, i32 2, i32 0, i32 1)
|
|
|
|
; CHECK: prfm pldslckeep,
|
|
call void @llvm.aarch64.prefetch(ptr null, i32 0, i32 3, i32 0, i32 1)
|
|
|
|
; CHECK: prfm pldl1strm,
|
|
call void @llvm.aarch64.prefetch(ptr null, i32 0, i32 0, i32 1, i32 1)
|
|
|
|
; CHECK: prfm plil1keep,
|
|
call void @llvm.aarch64.prefetch(ptr null, i32 0, i32 0, i32 0, i32 0)
|
|
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.aarch64.prefetch(ptr readonly, i32 immarg, i32 immarg, i32 immarg, i32 immarg) #0
|
|
|
|
attributes #0 = { inaccessiblemem_or_argmemonly nounwind willreturn }
|
|
|
|
!0 = !{!"int", !1}
|
|
!1 = !{!"omnipotent char", !2}
|
|
!2 = !{!"Simple C/C++ TBAA"}
|
|
!3 = !{!"any pointer", !1}
|