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
57 lines
2.4 KiB
LLVM
57 lines
2.4 KiB
LLVM
; RUN: llc -O0 -verify-machineinstrs -mtriple=spirv64-unknown-unknown --spirv-ext=+SPV_INTEL_variable_length_array %s -o - | FileCheck %s
|
|
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown --spirv-ext=+SPV_INTEL_variable_length_array %s -o - -filetype=obj | spirv-val %}
|
|
|
|
; CHECK: OpCapability VariableLengthArrayINTEL
|
|
; CHECK: OpExtension "SPV_INTEL_variable_length_array"
|
|
|
|
; CHECK-DAG: OpDecorate %[[#]] SpecId 0
|
|
; CHECK-DAG: OpDecorate %[[#]] SpecId 1
|
|
; CHECK-DAG: OpDecorate %[[#]] SpecId 2
|
|
; CHECK-DAG: OpDecorate %[[#A0:]] Alignment 4
|
|
; CHECK-DAG: OpDecorate %[[#A1:]] Alignment 2
|
|
; CHECK-DAG: OpDecorate %[[#A2:]] Alignment 16
|
|
|
|
; CHECK: %[[#VOID_TY:]] = OpTypeVoid
|
|
; CHECK: %[[#FUNC_TY:]] = OpTypeFunction %[[#VOID_TY]]
|
|
; CHECK-DAG: %[[#I64:]] = OpTypeInt 64 0
|
|
; CHECK-DAG: %[[#I32:]] = OpTypeInt 32 0
|
|
; CHECK-DAG: %[[#I8:]] = OpTypeInt 8 0
|
|
; CHECK-DAG: %[[#F64:]] = OpTypeFloat 64
|
|
; CHECK-DAG: %[[#STRUCT_TY:]] = OpTypeStruct %[[#F64]] %[[#F64]]
|
|
; CHECK-DAG: %[[#PTR_STRUCT:]] = OpTypePointer Function %[[#STRUCT_TY]]
|
|
; CHECK-DAG: %[[#PTR_I8:]] = OpTypePointer Function %[[#I8]]
|
|
; CHECK-DAG: %[[#F32:]] = OpTypeFloat 32
|
|
; CHECK-DAG: %[[#PTR_F32:]] = OpTypePointer Function %[[#F32]]
|
|
|
|
; CHECK-DAG: %[[#SC0:]] = OpSpecConstant %[[#I64]] 1
|
|
; CHECK-DAG: %[[#SC1:]] = OpSpecConstant %[[#I32]] 2
|
|
; CHECK-DAG: %[[#SC2:]] = OpSpecConstant %[[#I8]] 4
|
|
|
|
; CHECK: %[[#]] = OpFunction %[[#VOID_TY]] None %[[#FUNC_TY]]
|
|
; CHECK: %[[#LABEL:]] = OpLabel
|
|
|
|
; CHECK: %[[#A0]] = OpVariableLengthArrayINTEL %[[#PTR_F32]] %[[#SC0]]
|
|
; CHECK: %[[#A1]] = OpVariableLengthArrayINTEL %[[#PTR_I8]] %[[#SC1]]
|
|
; CHECK: %[[#A2]] = OpVariableLengthArrayINTEL %[[#PTR_STRUCT]] %[[#SC2]]
|
|
|
|
%struct_type = type { double, double }
|
|
|
|
define spir_kernel void @test() {
|
|
entry:
|
|
%length0 = call i64 @_Z20__spirv_SpecConstantix(i32 0, i64 1), !SYCL_SPEC_CONST_SYM_ID !0
|
|
%length1 = call i32 @_Z20__spirv_SpecConstantii(i32 1, i32 2), !SYCL_SPEC_CONST_SYM_ID !1
|
|
%length2 = call i8 @_Z20__spirv_SpecConstantic(i32 2, i8 4), !SYCL_SPEC_CONST_SYM_ID !2
|
|
%scla0 = alloca float, i64 %length0, align 4
|
|
%scla1 = alloca i8, i32 %length1, align 2
|
|
%scla2 = alloca %struct_type, i8 %length2, align 16
|
|
ret void
|
|
}
|
|
|
|
declare i8 @_Z20__spirv_SpecConstantic(i32, i8)
|
|
declare i32 @_Z20__spirv_SpecConstantii(i32, i32)
|
|
declare i64 @_Z20__spirv_SpecConstantix(i32, i64)
|
|
|
|
!0 = !{!"i64_spec_const", i32 0}
|
|
!1 = !{!"i32_spec_const", i32 1}
|
|
!2 = !{!"i8_spec_const", i32 2}
|