summaryrefslogtreecommitdiff
path: root/kernels/compiler_unstructured_branch0.cl
blob: 66da6e02f4e6ea27b195d8db59d161bd682bc24f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
__kernel void
compiler_unstructured_branch0(__global int *src, __global int *dst)
{
  int id = (int)get_global_id(0);
  dst[id] = src[id];
  if (dst[id] >= 0) goto label;

  do {
    dst[id] = 1;
  label:
    id += get_local_size(0);
  } while (id < 32);
}