Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/Hexagon/vect/shuff-32.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

87 lines
2.6 KiB
LLVM

; RUN: llc -mtriple=hexagon < %s | FileCheck %s
; CHECK-LABEL: test_00:
; CHECK: r0 = swiz(r0)
define <4 x i8> @test_00(<4 x i8> %a0) {
%p = shufflevector <4 x i8> %a0, <4 x i8> undef, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
ret <4 x i8> %p
}
; CHECK-LABEL: test_01:
; CHECK: r0 = swiz(r0)
define <4 x i8> @test_01(<4 x i8> %a0) {
%p = shufflevector <4 x i8> %a0, <4 x i8> undef, <4 x i32> <i32 undef, i32 2, i32 1, i32 0>
ret <4 x i8> %p
}
; CHECK-LABEL: test_02:
; CHECK: r0 = swiz(r0)
define <4 x i8> @test_02(<4 x i8> %a0) {
%p = shufflevector <4 x i8> %a0, <4 x i8> undef, <4 x i32> <i32 3, i32 undef, i32 1, i32 0>
ret <4 x i8> %p
}
; CHECK-LABEL: test_03:
; CHECK: r0 = swiz(r0)
define <4 x i8> @test_03(<4 x i8> %a0) {
%p = shufflevector <4 x i8> %a0, <4 x i8> undef, <4 x i32> <i32 3, i32 2, i32 undef, i32 undef>
ret <4 x i8> %p
}
; CHECK-LABEL: test_10:
; CHECK: r0 = vtrunehb(r1:0)
define <4 x i8> @test_10(<4 x i8> %a0, <4 x i8> %a1) {
%p = shufflevector <4 x i8> %a0, <4 x i8> %a1, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
ret <4 x i8> %p
}
; CHECK-LABEL: test_11:
; CHECK: r0 = vtrunehb(r1:0)
define <4 x i8> @test_11(<4 x i8> %a0, <4 x i8> %a1) {
%p = shufflevector <4 x i8> %a0, <4 x i8> %a1, <4 x i32> <i32 undef, i32 2, i32 4, i32 undef>
ret <4 x i8> %p
}
; CHECK-LABEL: test_12:
; CHECK: r0 = vtrunehb(r1:0)
define <4 x i8> @test_12(<4 x i8> %a0, <4 x i8> %a1) {
%p = shufflevector <4 x i8> %a0, <4 x i8> %a1, <4 x i32> <i32 0, i32 undef, i32 4, i32 6>
ret <4 x i8> %p
}
; CHECK-LABEL: test_13:
; CHECK: r0 = vtrunehb(r1:0)
define <4 x i8> @test_13(<4 x i8> %a0, <4 x i8> %a1) {
%p = shufflevector <4 x i8> %a0, <4 x i8> %a1, <4 x i32> <i32 0, i32 2, i32 undef, i32 undef>
ret <4 x i8> %p
}
; CHECK-LABEL: test_20:
; CHECK: r0 = vtrunohb(r1:0)
define <4 x i8> @test_20(<4 x i8> %a0, <4 x i8> %a1) {
%p = shufflevector <4 x i8> %a0, <4 x i8> %a1, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
ret <4 x i8> %p
}
; CHECK-LABEL: test_21:
; CHECK: r0 = vtrunohb(r1:0)
define <4 x i8> @test_21(<4 x i8> %a0, <4 x i8> %a1) {
%p = shufflevector <4 x i8> %a0, <4 x i8> %a1, <4 x i32> <i32 undef, i32 3, i32 5, i32 7>
ret <4 x i8> %p
}
; CHECK-LABEL: test_22:
; CHECK: r0 = vtrunohb(r1:0)
define <4 x i8> @test_22(<4 x i8> %a0, <4 x i8> %a1) {
%p = shufflevector <4 x i8> %a0, <4 x i8> %a1, <4 x i32> <i32 undef, i32 undef, i32 5, i32 7>
ret <4 x i8> %p
}
; CHECK-LABEL: test_23:
; CHECK: r0 = vtrunohb(r1:0)
define <4 x i8> @test_23(<4 x i8> %a0, <4 x i8> %a1) {
%p = shufflevector <4 x i8> %a0, <4 x i8> %a1, <4 x i32> <i32 1, i32 3, i32 5, i32 undef>
ret <4 x i8> %p
}