blob: 1003e46b85886ec4cba7370dcf9c857f6a0ef77b [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
int f() {
int i = 0;
{
uint2 tint_loop_idx = uint2(4294967295u);
while(true) {
if (all((tint_loop_idx == uint2(0u)))) {
break;
}
if ((i > 4)) {
return i;
}
{
uint const tint_low_inc = (tint_loop_idx.x - 1u);
tint_loop_idx.x = tint_low_inc;
uint const tint_carry = uint((tint_low_inc == 4294967295u));
tint_loop_idx.y = (tint_loop_idx.y - tint_carry);
i = as_type<int>((as_type<uint>(i) + as_type<uint>(1)));
if ((i == 4)) { break; }
}
continue;
}
}
return i;
}
kernel void v() {
f();
}