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
52 lines
2.0 KiB
LLVM
52 lines
2.0 KiB
LLVM
;; Check duplicate operands in opencl.ocl.version metadata is accepted without
|
|
;; assertion.
|
|
|
|
; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
|
|
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
|
|
|
|
%struct.my_struct_t = type { i8, i32 }
|
|
|
|
@var = addrspace(1) global %struct.my_struct_t { i8 97, i32 42 }, align 4
|
|
|
|
define spir_kernel void @__OpenCL_writer_kernel(i8 zeroext %c, i32 %i) {
|
|
entry:
|
|
%c.addr = alloca i8, align 1
|
|
%i.addr = alloca i32, align 4
|
|
store i8 %c, ptr %c.addr, align 1
|
|
store i32 %i, ptr %i.addr, align 4
|
|
%0 = load i8, ptr %c.addr, align 1
|
|
store i8 %0, ptr addrspace(1) @var, align 1
|
|
%1 = load i32, ptr %i.addr, align 4
|
|
store i32 %1, ptr addrspace(1) getelementptr inbounds (%struct.my_struct_t, ptr addrspace(1) @var, i32 0, i32 1), align 4
|
|
ret void
|
|
}
|
|
|
|
define spir_kernel void @__OpenCL_reader_kernel(ptr addrspace(1) %C, ptr addrspace(1) %I) {
|
|
entry:
|
|
%C.addr = alloca ptr addrspace(1), align 8
|
|
%I.addr = alloca ptr addrspace(1), align 8
|
|
store ptr addrspace(1) %C, ptr %C.addr, align 8
|
|
store ptr addrspace(1) %I, ptr %I.addr, align 8
|
|
%0 = load i8, ptr addrspace(1) @var, align 1
|
|
%1 = load ptr addrspace(1), ptr %C.addr, align 8
|
|
store i8 %0, ptr addrspace(1) %1, align 1
|
|
%2 = load i32, ptr addrspace(1) getelementptr inbounds (%struct.my_struct_t, ptr addrspace(1) @var, i32 0, i32 1), align 4
|
|
%3 = load ptr addrspace(1), ptr %I.addr, align 8
|
|
store i32 %2, ptr addrspace(1) %3, align 4
|
|
ret void
|
|
}
|
|
|
|
;; "cl_images" should be encoded as BasicImage capability,
|
|
;; but images are not used in this test case, so this capability is not required.
|
|
; CHECK-NOT: OpExtension "cl_images"
|
|
; CHECK-DAG: OpSourceExtension "cl_khr_int64_base_atomics"
|
|
; CHECK-DAG: OpSourceExtension "cl_khr_int64_extended_atomics"
|
|
; CHECK: OpSource OpenCL_C 200000
|
|
|
|
!opencl.ocl.version = !{!13, !13}
|
|
!opencl.used.extensions = !{!24, !25}
|
|
|
|
!13 = !{i32 2, i32 0}
|
|
!24 = !{!"cl_khr_int64_base_atomics"}
|
|
!25 = !{!"cl_khr_int64_base_atomics", !"cl_khr_int64_extended_atomics"}
|