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
87 lines
2.9 KiB
LLVM
87 lines
2.9 KiB
LLVM
; RUN: llc < %s -mtriple=ve -mattr=+vpu | FileCheck %s
|
|
|
|
;;; Test prefetch vector intrinsic instructions
|
|
;;;
|
|
;;; Note:
|
|
;;; We test LSVrr_v and LVSvr instructions.
|
|
|
|
; Function Attrs: nounwind
|
|
define void @lsv_vvss(ptr %0, i64 %1, i32 signext %2) {
|
|
; CHECK-LABEL: lsv_vvss:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: lea %s3, 256
|
|
; CHECK-NEXT: lvl %s3
|
|
; CHECK-NEXT: vld %v0, 8, %s0
|
|
; CHECK-NEXT: and %s2, %s2, (32)0
|
|
; CHECK-NEXT: lsv %v0(%s2), %s1
|
|
; CHECK-NEXT: vst %v0, 8, %s0
|
|
; CHECK-NEXT: b.l.t (, %s10)
|
|
%4 = tail call fast <256 x double> @llvm.ve.vl.vld.vssl(i64 8, ptr %0, i32 256)
|
|
%5 = tail call fast <256 x double> @llvm.ve.vl.lsv.vvss(<256 x double> %4, i32 %2, i64 %1)
|
|
tail call void @llvm.ve.vl.vst.vssl(<256 x double> %5, i64 8, ptr %0, i32 256)
|
|
ret void
|
|
}
|
|
|
|
; Function Attrs: nounwind readonly
|
|
declare <256 x double> @llvm.ve.vl.vld.vssl(i64, ptr, i32)
|
|
|
|
; Function Attrs: nounwind readnone
|
|
declare <256 x double> @llvm.ve.vl.lsv.vvss(<256 x double>, i32, i64)
|
|
|
|
; Function Attrs: nounwind writeonly
|
|
declare void @llvm.ve.vl.vst.vssl(<256 x double>, i64, ptr, i32)
|
|
|
|
; Function Attrs: nounwind readonly
|
|
define i64 @lvsl_vssl_imm(ptr readonly %0, i32 signext %1) {
|
|
; CHECK-LABEL: lvsl_vssl_imm:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: lea %s2, 256
|
|
; CHECK-NEXT: lvl %s2
|
|
; CHECK-NEXT: vld %v0, 8, %s0
|
|
; CHECK-NEXT: and %s0, %s1, (32)0
|
|
; CHECK-NEXT: lvs %s0, %v0(%s0)
|
|
; CHECK-NEXT: b.l.t (, %s10)
|
|
%3 = tail call fast <256 x double> @llvm.ve.vl.vld.vssl(i64 8, ptr %0, i32 256)
|
|
%4 = tail call i64 @llvm.ve.vl.lvsl.svs(<256 x double> %3, i32 %1)
|
|
ret i64 %4
|
|
}
|
|
|
|
; Function Attrs: nounwind readnone
|
|
declare i64 @llvm.ve.vl.lvsl.svs(<256 x double>, i32)
|
|
|
|
; Function Attrs: nounwind readonly
|
|
define double @lvsd_vssl_imm(ptr readonly %0, i32 signext %1) {
|
|
; CHECK-LABEL: lvsd_vssl_imm:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: lea %s2, 256
|
|
; CHECK-NEXT: lvl %s2
|
|
; CHECK-NEXT: vld %v0, 8, %s0
|
|
; CHECK-NEXT: and %s0, %s1, (32)0
|
|
; CHECK-NEXT: lvs %s0, %v0(%s0)
|
|
; CHECK-NEXT: b.l.t (, %s10)
|
|
%3 = tail call fast <256 x double> @llvm.ve.vl.vld.vssl(i64 8, ptr %0, i32 256)
|
|
%4 = tail call fast double @llvm.ve.vl.lvsd.svs(<256 x double> %3, i32 %1)
|
|
ret double %4
|
|
}
|
|
|
|
; Function Attrs: nounwind readnone
|
|
declare double @llvm.ve.vl.lvsd.svs(<256 x double>, i32)
|
|
|
|
; Function Attrs: nounwind readonly
|
|
define float @lvss_vssl_imm(ptr readonly %0, i32 signext %1) {
|
|
; CHECK-LABEL: lvss_vssl_imm:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: lea %s2, 256
|
|
; CHECK-NEXT: lvl %s2
|
|
; CHECK-NEXT: vld %v0, 8, %s0
|
|
; CHECK-NEXT: and %s0, %s1, (32)0
|
|
; CHECK-NEXT: lvs %s0, %v0(%s0)
|
|
; CHECK-NEXT: b.l.t (, %s10)
|
|
%3 = tail call fast <256 x double> @llvm.ve.vl.vld.vssl(i64 8, ptr %0, i32 256)
|
|
%4 = tail call fast float @llvm.ve.vl.lvss.svs(<256 x double> %3, i32 %1)
|
|
ret float %4
|
|
}
|
|
|
|
; Function Attrs: nounwind readnone
|
|
declare float @llvm.ve.vl.lvss.svs(<256 x double>, i32)
|