blob: 8ca2f1bf93907c04822890bcf43e027946e14bad [file] [log] [blame]
// RUN: clspv %s -o %t.spv
// RUN: spirv-dis -o %t.spvasm %t.spv
// RUN: FileCheck %s < %t.spvasm
// RUN: spirv-val --target-env vulkan1.0 %t.spv
kernel void foo(global int *data, local int* l) {
int x = l[0];
barrier(CLK_GLOBAL_MEM_FENCE);
data[0] = x;
}
// |data| is only written so it is not marked as Coherent.
// CHECK-NOT: OpDecorate {{.*}} Coherent