[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / llvm / test / CodeGen / SPIRV / capability-Int64Atomics-store.ll
blobee626db8d9672e8d5cf6087f70c3b638b340a535
1 ;; OpenCL C source:
2 ;; #pragma OPENCL EXTENSION cl_khr_int64_base_atomics : enable
3 ;; #pragma OPENCL EXTENSION cl_khr_int64_extended_atomics : enable
4 ;;
5 ;; void foo (volatile atomic_long *object, long desired) {
6 ;;   atomic_store(object, desired);
7 ;; }
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) {
14 entry:
15   tail call spir_func void @_Z12atomic_storePVU3AS4U7_Atomicll(i64 addrspace(4)* %object, i64 %desired)
16   ret void
19 declare spir_func void @_Z12atomic_storePVU3AS4U7_Atomicll(i64 addrspace(4)*, i64)