blob: 8abcec5e8b6bbd3fb9dda353b7aefa7ae3bc12ce [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
int f() {
int i = 0;
{
uint2 tint_loop_idx = 0u;
while(true) {
if (all((tint_loop_idx == uint2(4294967295u)))) {
break;
}
i = as_type<int>((as_type<uint>(i) + as_type<uint>(1)));
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 == 0u));
tint_loop_idx.y = (tint_loop_idx.y + tint_carry);
}
continue;
}
}
/* unreachable */
return 0;
}