#include <metal_stdlib>

using namespace metal;
half4 subgroupShuffleUp_0990cd() {
  half4 arg_0 = half4(1.0h);
  uint arg_1 = 1u;
  half4 res = simd_shuffle_up(arg_0,arg_1);
  return res;
}

fragment void fragment_main(device half4* tint_symbol [[buffer(0)]]) {
  *(tint_symbol) = subgroupShuffleUp_0990cd();
  return;
}

kernel void compute_main(device half4* tint_symbol_1 [[buffer(0)]]) {
  *(tint_symbol_1) = subgroupShuffleUp_0990cd();
  return;
}

