RWByteAddressBuffer prevent_dce : register(u0);

int3 subgroupOr_03343f() {
  int3 arg_0 = (1).xxx;
  int3 res = asint(WaveActiveBitOr(asuint(arg_0)));
  return res;
}

void fragment_main() {
  prevent_dce.Store3(0u, asuint(subgroupOr_03343f()));
  return;
}

[numthreads(1, 1, 1)]
void compute_main() {
  prevent_dce.Store3(0u, asuint(subgroupOr_03343f()));
  return;
}
