19 lines · plain
1// RUN: %clang_cc1 %s -cl-std=CL2.0 -emit-llvm -o - -triple spir-unknown-unknown -verify2// RUN: %clang_cc1 %s -cl-std=CL2.0 -emit-llvm -o - -triple spir64-unknown-unknown -verify3 4// expected-no-diagnostics5 6int fi1a(int *i) {7 int v;8 __scoped_atomic_load(i, &v, __ATOMIC_RELAXED, __MEMORY_SCOPE_DEVICE);9 return v;10}11 12#ifdef __SPIR64__13long fl1a(long *i) {14 long v;15 __scoped_atomic_load(i, &v, __ATOMIC_RELAXED, __MEMORY_SCOPE_DEVICE);16 return v;17}18#endif19