summaryrefslogtreecommitdiff
path: root/kernels/compiler_gather_register_file1.cl
blob: 184202c60c915db791ad031c73b2e95aea68abd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
__kernel void
compiler_gather_register_file1(__global uint *src, __global uint *dst)
{
  __gen_ocl_force_simd16();
  int id = (int)get_global_id(0);
  const int x0 = src[id];
  const int x1 = src[id+16];
  const unsigned short index = 2*get_global_id(0);
  dst[id] = __gen_ocl_rgather(index, x0, x1);
}