blob: 410400bf9e29c9bce70325ba5a2434716eba6d97 [file] [log] [blame]
groupshared int a;
groupshared int b;
void foo() {
{
int i = 0;
while(true) {
int v = i;
GroupMemoryBarrierWithGroupSync();
int v_1 = a;
GroupMemoryBarrierWithGroupSync();
if ((v < v_1)) {
} else {
break;
}
{
GroupMemoryBarrierWithGroupSync();
int v_2 = b;
GroupMemoryBarrierWithGroupSync();
i = (i + v_2);
}
continue;
}
}
}
[numthreads(1, 1, 1)]
void unused_entry_point() {
}