//TEST:SIMPLE(filecheck=CHECK): -entry computeMain -profile cs_5_0 -target hlsl RWStructuredBuffer outputBuffer; // CHECK: divide by zero uint check() { return 1 / int(b); } [numthreads(4, 1, 1)] void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) { uint tid = dispatchThreadID.x; uint a = check(); uint b = check(); outputBuffer[tid] = a + b; }