RWByteAddressBuffer prevent_dce : register(u0);

vector<float16_t, 3> quadBroadcast_796753() {
  vector<float16_t, 3> res = QuadReadLaneAt((float16_t(1.0h)).xxx, 1);
  return res;
}

void fragment_main() {
  prevent_dce.Store<vector<float16_t, 3> >(0u, quadBroadcast_796753());
  return;
}

[numthreads(1, 1, 1)]
void compute_main() {
  prevent_dce.Store<vector<float16_t, 3> >(0u, quadBroadcast_796753());
  return;
}
