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
58 lines
2.6 KiB
Plaintext
58 lines
2.6 KiB
Plaintext
; Check OpAtomicCompareExchangeWeak is treated as OpAtomicCompareExchange
|
|
|
|
; REQUIRES: spirv-as
|
|
; RUN: spirv-as --target-env spv1.3 -o %t.spv %s
|
|
; RUN: spirv-val %t.spv
|
|
; RUN: llvm-spirv -r --spirv-target-env=CL2.0 --spirv-target-env="SPV-IR" -o - %t.spv | llvm-dis | FileCheck %s
|
|
|
|
OpCapability Addresses
|
|
OpCapability Linkage
|
|
OpCapability Kernel
|
|
OpCapability Int8
|
|
%1 = OpExtInstImport "OpenCL.std"
|
|
OpMemoryModel Physical64 OpenCL
|
|
OpEntryPoint Kernel %19 "entry_test_atomic_global"
|
|
OpSource OpenCL_C 200000
|
|
OpName %test_atomic_global "test_atomic_global"
|
|
OpName %dst "dst"
|
|
OpName %object "object"
|
|
OpName %expected "expected"
|
|
OpName %desired "desired"
|
|
OpName %dst_0 "dst"
|
|
OpName %object_0 "object"
|
|
OpName %expected_0 "expected"
|
|
OpName %desired_0 "desired"
|
|
OpDecorate %test_atomic_global LinkageAttributes "test_atomic_global" Export
|
|
OpDecorate %dst_0 Volatile
|
|
%uint = OpTypeInt 32 0
|
|
%uchar = OpTypeInt 8 0
|
|
%uint_1 = OpConstant %uint 1
|
|
%uint_16 = OpConstant %uint 16
|
|
%uint_0 = OpConstant %uint 0
|
|
%void = OpTypeVoid
|
|
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
|
%_ptr_CrossWorkgroup_uchar = OpTypePointer CrossWorkgroup %uchar
|
|
%7 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uchar %_ptr_CrossWorkgroup_uchar %uint
|
|
%test_atomic_global = OpFunction %void None %7
|
|
%dst = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
|
%object = OpFunctionParameter %_ptr_CrossWorkgroup_uchar
|
|
%expected = OpFunctionParameter %_ptr_CrossWorkgroup_uchar
|
|
%desired = OpFunctionParameter %uint
|
|
%13 = OpLabel
|
|
%17 = OpAtomicCompareExchange %uint %dst %uint_1 %uint_16 %uint_16 %uint_1 %uint_0
|
|
%18 = OpAtomicCompareExchangeWeak %uint %dst %uint_1 %uint_16 %uint_16 %uint_1 %uint_0
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%19 = OpFunction %void None %7
|
|
%dst_0 = OpFunctionParameter %_ptr_CrossWorkgroup_uint
|
|
%object_0 = OpFunctionParameter %_ptr_CrossWorkgroup_uchar
|
|
%expected_0 = OpFunctionParameter %_ptr_CrossWorkgroup_uchar
|
|
%desired_0 = OpFunctionParameter %uint
|
|
%24 = OpLabel
|
|
%25 = OpFunctionCall %void %test_atomic_global %dst_0 %object_0 %expected_0 %desired_0
|
|
OpReturn
|
|
OpFunctionEnd
|
|
|
|
; CHECK: call spir_func i32 @_Z29__spirv_AtomicCompareExchangePU3AS1iiiiii(
|
|
; CHECK-NOT: call spir_func i32 @_Z33__spirv_AtomicCompareExchangeWeakPU3AS1iiiiii(
|