Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/Hexagon/isel/extract-subvec.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

35 lines
1.3 KiB
LLVM

; Check if extract_subvectors is handled properly in Hexagon backend when the
; the source vector is a vector-pair and result vector is not hvx vector size.
; https://github.com/llvm/llvm-project/issues/128775
;
; Example of such a case:
; ...
; t2: v64i32,ch = CopyFromReg t0, Register:v64i32 %0
; t17: v2i32 = extract_subvector t2, Constant:i32<4>
; ...
; RUN: llc -mtriple=hexagon -mattr="hvx-length128b" < %s | FileCheck %s
; CHECK-LABEL: extract_subvec:
; CHECK: r29 = and(r29,#-128)
; CHECK: [[R1:r([0-9]+)]] = add(r29,#0)
; CHECK: vmem([[R1]]+#0) = v0
; CHECK-DAG: r[[R4:[0-9]+]] = memw([[R1]]+#0)
; CHECK-DAG: r[[R5:[0-9]+]] = memw([[R1]]+#4)
; CHECK-DAG: r[[R6:[0-9]+]] = memw([[R1]]+#8)
; CHECK-DAG: r[[R7:[0-9]+]] = memw([[R1]]+#12)
; CHECK-DAG: r[[R8:[0-9]+]] = memw([[R1]]+#16)
; CHECK-DAG: r[[R9:[0-9]+]] = memw([[R1]]+#20)
; CHECK-DAG: r[[R2:[0-9]+]] = memw([[R1]]+#24)
; CHECK-DAG: r[[R3:[0-9]+]] = memw([[R1]]+#28)
; CHECK-DAG: memd(r0+#0) = r[[R5]]:[[R4]]
; CHECK-DAG: memd(r0+#8) = r[[R7]]:[[R6]]
; CHECK-DAG: memd(r0+#16) = r[[R9]]:[[R8]]
; CHECK-DAG: memw(r0+#24) = r[[R2]]
define void @extract_subvec(<56 x i32> %val, ptr %buf) {
entry:
%split = shufflevector <56 x i32> %val, <56 x i32> zeroinitializer, <7 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6>
store <7 x i32> %split, ptr %buf, align 32
ret void
}