summaryrefslogtreecommitdiff
path: root/kernels/compiler_lower_return2.cl
blob: 9fa8ad6090a0fd41dc57f843b7664593892e56f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
__kernel void
compiler_lower_return2(__global int *src, __global int *dst) {
  const int id = get_global_id(0);
  dst[id] = id;
  while (dst[id] > src[id]) {
    if (dst[id] > 10) return;
    dst[id]--;
  }
  dst[id] += 2;
}