2 ;; #pragma OPENCL EXTENSION cl_khr_int64_base_atomics : enable
3 ;; #pragma OPENCL EXTENSION cl_khr_int64_extended_atomics : enable
5 ;; void foo (volatile atomic_long *object, long desired) {
6 ;; atomic_store(object, desired);
9 ; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
11 ; CHECK: OpCapability Int64Atomics
13 define spir_func void @foo(i64 addrspace(4)* %object, i64 %desired) {
15 tail call spir_func void @_Z12atomic_storePVU3AS4U7_Atomicll(i64 addrspace(4)* %object, i64 %desired)
19 declare spir_func void @_Z12atomic_storePVU3AS4U7_Atomicll(i64 addrspace(4)*, i64)