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
40 lines
1.6 KiB
LLVM
40 lines
1.6 KiB
LLVM
; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv-unknown-vulkan-compute %s -o - | FileCheck %s
|
|
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-vulkan %s -o - -filetype=obj | spirv-val %}
|
|
|
|
; CHECK-DAG: %[[#uint_ty:]] = OpTypeInt 32 0
|
|
; CHECK-DAG: %[[#uint_0:]] = OpConstant %[[#uint_ty]] 0{{$}}
|
|
; CHECK-DAG: %[[#int_10:]] = OpConstant %[[#uint_ty]] 10{{$}}
|
|
; CHECK-DAG: %[[#array_ty:]] = OpTypeArray %[[#uint_ty]] %[[#int_10]]
|
|
; CHECK-DAG: %[[#array_fp:]] = OpTypePointer Function %[[#array_ty]]
|
|
; CHECK-DAG: %[[#array_pp:]] = OpTypePointer Private %[[#array_ty]]
|
|
; CHECK-DAG: %[[#int_fp:]] = OpTypePointer Function %[[#uint_ty]]
|
|
; CHECK-DAG: %[[#int_pp:]] = OpTypePointer Private %[[#uint_ty]]
|
|
|
|
@gv = external addrspace(10) global [10 x i32]
|
|
; CHECK: %[[#gv:]] = OpVariable %[[#array_pp]] Private
|
|
|
|
define internal spir_func i32 @foo() #0 {
|
|
%array = alloca [10 x i32], align 4
|
|
; CHECK: %[[#array:]] = OpVariable %[[#array_fp:]] Function
|
|
|
|
; Direct load from the pointer index. This requires an OpAccessChain
|
|
%1 = load i32, ptr %array, align 4
|
|
; CHECK: %[[#ptr:]] = OpAccessChain %[[#int_fp]] %[[#array]] %[[#uint_0]]
|
|
; CHECK: %[[#val:]] = OpLoad %[[#uint_ty]] %[[#ptr]]
|
|
|
|
ret i32 %1
|
|
; CHECK: OpReturnValue %[[#val]]
|
|
}
|
|
|
|
attributes #0 = { optnone noinline }
|
|
|
|
define internal spir_func i32 @bar() {
|
|
; Direct load from the pointer index. This requires an OpAccessChain
|
|
%1 = load i32, ptr addrspace(10) @gv
|
|
; CHECK: %[[#ptr:]] = OpAccessChain %[[#int_pp]] %[[#gv]] %[[#uint_0]]
|
|
; CHECK: %[[#val:]] = OpLoad %[[#uint_ty]] %[[#ptr]]
|
|
|
|
ret i32 %1
|
|
; CHECK: OpReturnValue %[[#val]]
|
|
}
|