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
70 lines
2.5 KiB
LLVM
70 lines
2.5 KiB
LLVM
; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s
|
|
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv32-unknown-unknown %s -o - -filetype=obj | spirv-val %}
|
|
|
|
; CHECK-DAG: OpName [[SHFv4:%.+]] "shuffle_v4"
|
|
; CHECK-DAG: OpName [[INSv4:%.+]] "insert_v4"
|
|
; CHECK-DAG: OpName [[EXTv4:%.+]] "extract_v4"
|
|
; CHECK-DAG: OpName [[INSv4C:%.+]] "insert_v4C"
|
|
; CHECK-DAG: OpName [[EXTv4C:%.+]] "extract_v4C"
|
|
|
|
|
|
; CHECK: [[SHFv4]] = OpFunction
|
|
; CHECK-NEXT: [[A:%.+]] = OpFunctionParameter
|
|
; CHECK-NEXT: [[B:%.+]] = OpFunctionParameter
|
|
; CHECK: OpLabel
|
|
; CHECK: [[R:%.+]] = OpVectorShuffle {{%.+}} [[A]] [[B]] 0 4 3 6
|
|
; CHECK: OpReturnValue [[R]]
|
|
; CHECK-NEXT: OpFunctionEnd
|
|
define <4 x float> @shuffle_v4(<8 x float> %A, <8 x float> %B) {
|
|
%r = shufflevector <8 x float> %A, <8 x float> %B, <4 x i32> <i32 0, i32 4, i32 3, i32 6>
|
|
ret <4 x float> %r
|
|
}
|
|
|
|
; CHECK: [[INSv4]] = OpFunction
|
|
; CHECK-NEXT: [[V:%.+]] = OpFunctionParameter
|
|
; CHECK-NEXT: [[E:%.+]] = OpFunctionParameter
|
|
; CHECK-NEXT: [[C:%.+]] = OpFunctionParameter
|
|
; CHECK: OpLabel
|
|
; CHECK: [[R:%.+]] = OpVectorInsertDynamic {{%.+}} [[V]] [[E]] [[C]]
|
|
; CHECK: OpReturnValue [[R]]
|
|
; CHECK-NEXT: OpFunctionEnd
|
|
define <4 x float> @insert_v4(<4 x float> %V, float %E, i32 %C) {
|
|
%r = insertelement <4 x float> %V, float %E, i32 %C
|
|
ret <4 x float> %r
|
|
}
|
|
|
|
; CHECK: [[EXTv4]] = OpFunction
|
|
; CHECK-NEXT: [[V:%.+]] = OpFunctionParameter
|
|
; CHECK-NEXT: [[C:%.+]] = OpFunctionParameter
|
|
; CHECK: OpLabel
|
|
; CHECK: [[R:%.+]] = OpVectorExtractDynamic {{%.+}} [[V]] [[C]]
|
|
; CHECK: OpReturnValue [[R]]
|
|
; CHECK-NEXT: OpFunctionEnd
|
|
define float @extract_v4(<4 x float> %V, i32 %C) {
|
|
%r = extractelement <4 x float> %V, i32 %C
|
|
ret float %r
|
|
}
|
|
|
|
; CHECK: [[INSv4C]] = OpFunction
|
|
; CHECK-NEXT: [[V:%.+]] = OpFunctionParameter
|
|
; CHECK-NEXT: [[E:%.+]] = OpFunctionParameter
|
|
; CHECK: OpLabel
|
|
; CHECK: [[R:%.+]] = OpCompositeInsert {{%.+}} [[E]] [[V]] 3
|
|
; CHECK: OpReturnValue [[R]]
|
|
; CHECK-NEXT: OpFunctionEnd
|
|
define <4 x float> @insert_v4C(<4 x float> %V, float %E) {
|
|
%r = insertelement <4 x float> %V, float %E, i32 3
|
|
ret <4 x float> %r
|
|
}
|
|
|
|
; CHECK: [[EXTv4C]] = OpFunction
|
|
; CHECK-NEXT: [[V:%.+]] = OpFunctionParameter
|
|
; CHECK: OpLabel
|
|
; CHECK: [[R:%.+]] = OpCompositeExtract {{%.+}} [[V]] 2
|
|
; CHECK: OpReturnValue [[R]]
|
|
; CHECK-NEXT: OpFunctionEnd
|
|
define float @extract_v4C(<4 x float> %V) {
|
|
%r = extractelement <4 x float> %V, i32 2
|
|
ret float %r
|
|
}
|