dawn-cmake/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak
Zhaoming Jiang 4faf3581b8 Tint/builder/spirv: Fix atomicCompareExchangeWeak wrong return
This CL fix the spv code generated for atomicCompareExchangeWeak,
specifically the emulated `exchanged` field of the returned struct.
It should be true if and only if the `old_value`, i.e. the return value
of spv `OpAtomicCompareExchange`, equals to the comparator, rather than
equals to new value.

Fixed: tint:1663
Change-Id: I1cb0de6bb6b90ae681f5053b8bdd6f6b247146f6
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/107180
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
2022-10-26 08:23:25 +00:00
..
storage_i32.spvasm tint: Add support for atomic ops to spirv reader 2022-06-24 22:28:23 +00:00
storage_i32.spvasm.expected.dxc.hlsl tint: remove LoopToForLoop and FoldTrivialSingleUseLets transforms for HLSL and GLSL 2022-09-19 14:05:21 +00:00
storage_i32.spvasm.expected.fxc.hlsl tint: remove LoopToForLoop and FoldTrivialSingleUseLets transforms for HLSL and GLSL 2022-09-19 14:05:21 +00:00
storage_i32.spvasm.expected.glsl tint: remove LoopToForLoop and FoldTrivialSingleUseLets transforms for HLSL and GLSL 2022-09-19 14:05:21 +00:00
storage_i32.spvasm.expected.msl When emitting a MSL struct initializer emit the struct name. 2022-08-11 02:28:01 +00:00
storage_i32.spvasm.expected.spvasm Tint/builder/spirv: Fix atomicCompareExchangeWeak wrong return 2022-10-26 08:23:25 +00:00
storage_i32.spvasm.expected.wgsl tint: Add support for atomic ops to spirv reader 2022-06-24 22:28:23 +00:00
storage_u32.spvasm tint: Add support for atomic ops to spirv reader 2022-06-24 22:28:23 +00:00
storage_u32.spvasm.expected.dxc.hlsl tint: remove LoopToForLoop and FoldTrivialSingleUseLets transforms for HLSL and GLSL 2022-09-19 14:05:21 +00:00
storage_u32.spvasm.expected.fxc.hlsl tint: remove LoopToForLoop and FoldTrivialSingleUseLets transforms for HLSL and GLSL 2022-09-19 14:05:21 +00:00
storage_u32.spvasm.expected.glsl tint: remove LoopToForLoop and FoldTrivialSingleUseLets transforms for HLSL and GLSL 2022-09-19 14:05:21 +00:00
storage_u32.spvasm.expected.msl When emitting a MSL struct initializer emit the struct name. 2022-08-11 02:28:01 +00:00
storage_u32.spvasm.expected.spvasm Tint/builder/spirv: Fix atomicCompareExchangeWeak wrong return 2022-10-26 08:23:25 +00:00
storage_u32.spvasm.expected.wgsl tint: Add support for atomic ops to spirv reader 2022-06-24 22:28:23 +00:00
workgroup_i32.spvasm tint: Add support for atomic ops to spirv reader 2022-06-24 22:28:23 +00:00
workgroup_i32.spvasm.expected.dxc.hlsl tint: remove LoopToForLoop and FoldTrivialSingleUseLets transforms for HLSL and GLSL 2022-09-19 14:05:21 +00:00
workgroup_i32.spvasm.expected.fxc.hlsl tint: remove LoopToForLoop and FoldTrivialSingleUseLets transforms for HLSL and GLSL 2022-09-19 14:05:21 +00:00
workgroup_i32.spvasm.expected.glsl tint: remove LoopToForLoop and FoldTrivialSingleUseLets transforms for HLSL and GLSL 2022-09-19 14:05:21 +00:00
workgroup_i32.spvasm.expected.msl When emitting a MSL struct initializer emit the struct name. 2022-08-11 02:28:01 +00:00
workgroup_i32.spvasm.expected.spvasm Tint/builder/spirv: Fix atomicCompareExchangeWeak wrong return 2022-10-26 08:23:25 +00:00
workgroup_i32.spvasm.expected.wgsl tint: Add support for atomic ops to spirv reader 2022-06-24 22:28:23 +00:00
workgroup_u32.spvasm tint: Add support for atomic ops to spirv reader 2022-06-24 22:28:23 +00:00
workgroup_u32.spvasm.expected.dxc.hlsl tint: remove LoopToForLoop and FoldTrivialSingleUseLets transforms for HLSL and GLSL 2022-09-19 14:05:21 +00:00
workgroup_u32.spvasm.expected.fxc.hlsl tint: remove LoopToForLoop and FoldTrivialSingleUseLets transforms for HLSL and GLSL 2022-09-19 14:05:21 +00:00
workgroup_u32.spvasm.expected.glsl tint: remove LoopToForLoop and FoldTrivialSingleUseLets transforms for HLSL and GLSL 2022-09-19 14:05:21 +00:00
workgroup_u32.spvasm.expected.msl When emitting a MSL struct initializer emit the struct name. 2022-08-11 02:28:01 +00:00
workgroup_u32.spvasm.expected.spvasm Tint/builder/spirv: Fix atomicCompareExchangeWeak wrong return 2022-10-26 08:23:25 +00:00
workgroup_u32.spvasm.expected.wgsl tint: Add support for atomic ops to spirv reader 2022-06-24 22:28:23 +00:00