Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/Hexagon/autohvx/masked-vmem-multi.ll
T
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

70 lines
2.2 KiB
LLVM

; RUN: llc -mtriple=hexagon < %s | FileCheck %s
; CHECK-LABEL: l48:
; CHECK: v{{.+}} = vmem({{.+}})
; CHECK-DAG: v{{.+}} = vmem({{.+}})
; CHECK-DAG: vmux
; CHECK: vmux
define <48 x i32> @l48(ptr align 128 %p, <48 x i32> %v, <48 x i32> %a) #0 {
%q = icmp sgt <48 x i32> %a, zeroinitializer
%r = call <48 x i32> @llvm.masked.load.vv80i32.p0(ptr %p, <48 x i1> %q, <48 x i32> %v)
ret <48 x i32> %r
}
; CHECK-LABEL: l64:
; CHECK: v{{.+}} = vmem({{.+}})
; CHECK-DAG: v{{.+}} = vmem({{.+}})
; CHECK-DAG: vmux
; CHECK: vmux
define <64 x i32> @l64(ptr align 128 %p, <64 x i32> %v, <64 x i32> %a) #0 {
%q = icmp sgt <64 x i32> %a, zeroinitializer
%r = call <64 x i32> @llvm.masked.load.vv80i32.p0(ptr %p, <64 x i1> %q, <64 x i32> %v)
ret <64 x i32> %r
}
; CHECK-LABEL: l80:
; CHECK: v{{.+}} = vmem({{.+}})
; CHECK-DAG: v{{.+}} = vmem({{.+}})
; CHECK-DAG: v{{.+}} = vmem({{.+}})
; CHECK-DAG: vmux
; CHECK-DAG: vmux
; CHECK: vmux
define <80 x i32> @l80(ptr align 128 %p, <80 x i32> %v, <80 x i32> %a) #0 {
%q = icmp sgt <80 x i32> %a, zeroinitializer
%r = call <80 x i32> @llvm.masked.load.vv80i32.p0(ptr %p, <80 x i1> %q, <80 x i32> %v)
ret <80 x i32> %r
}
; CHECK-LABEL: s48:
; CHECK: if (q{{.}}) vmem{{.*}} = v
; CHECK: if (q{{.}}) vmem{{.*}} = v
; CHECK-NOT: vmem
define void @s48(ptr %p, <48 x i32> %v, <48 x i32> %a) #0 {
%q = icmp sgt <48 x i32> %a, zeroinitializer
call void @llvm.masked.store.vv80i32.p0(<48 x i32> %v, ptr %p, i32 128, <48 x i1> %q)
ret void
}
; CHECK-LABEL: s64:
; CHECK: if (q{{.}}) vmem{{.*}} = v
; CHECK: if (q{{.}}) vmem{{.*}} = v
; CHECK-NOT: vmem
define void @s64(ptr %p, <64 x i32> %v, <64 x i32> %a) #0 {
%q = icmp sgt <64 x i32> %a, zeroinitializer
call void @llvm.masked.store.vv80i32.p0(<64 x i32> %v, ptr %p, i32 128, <64 x i1> %q)
ret void
}
; CHECK-LABEL: s80:
; CHECK: if (q{{.}}) vmem{{.*}} = v
; CHECK: if (q{{.}}) vmem{{.*}} = v
; CHECK: if (q{{.}}) vmem{{.*}} = v
; CHECK-NOT: vmem
define void @s80(ptr %p, <80 x i32> %v, <80 x i32> %a) #0 {
%q = icmp sgt <80 x i32> %a, zeroinitializer
call void @llvm.masked.store.vv80i32.p0(<80 x i32> %v, ptr %p, i32 128, <80 x i1> %q)
ret void
}
attributes #0 = { nounwind "target-features"="+hvxv73,+hvx-length128b" }