blob: 8c9d6878ae5da87deb90d9e8eb29beb76ddf54fd [file] [log] [blame]
struct atomic_compare_exchange_result_u32 {
uint old_value;
bool exchanged;
};
RWByteAddressBuffer sb_rw : register(u0);
void atomicCompareExchangeWeak_63d8e6() {
uint arg_1 = 1u;
uint arg_2 = 1u;
uint v = arg_1;
uint v_1 = arg_2;
uint v_2 = 0u;
sb_rw.InterlockedCompareExchange(uint(0u), v, v_1, v_2);
uint v_3 = v_2;
atomic_compare_exchange_result_u32 res = {v_3, (v_3 == v)};
}
void fragment_main() {
atomicCompareExchangeWeak_63d8e6();
}
[numthreads(1, 1, 1)]
void compute_main() {
atomicCompareExchangeWeak_63d8e6();
}