dawn-cmake/test/tint/expressions/binary/div/scalar-scalar
Ben Clayton 51be3420b8 tint/writer/glsl: Fix emission of lowest i32 value
GLSL has the same behavior as MSL, in that -2147483648 is parsed as
a unary minus on '2147483648'. 2147483648 overflows an i32, so this
actually gets treated as -0.

Change-Id: Ibebd8b78a8840f18c438ed1d3d24dee486a65816
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/123202
Reviewed-by: Stephen White <senorblanco@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
Commit-Queue: Ben Clayton <bclayton@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
2023-03-08 21:13:22 +00:00
..
f16.wgsl tint: Add end-to-end tests for expressions using f16 types 2022-08-03 08:45:25 +00:00
f16.wgsl.expected.dxc.hlsl tint: remove LoopToForLoop and FoldTrivialSingleUseLets transforms for HLSL and GLSL 2022-09-19 14:05:21 +00:00
f16.wgsl.expected.fxc.hlsl test/tint: Update SKIP "expectations" 2023-03-02 09:25:40 +00:00
f16.wgsl.expected.glsl tint: remove LoopToForLoop and FoldTrivialSingleUseLets transforms for HLSL and GLSL 2022-09-19 14:05:21 +00:00
f16.wgsl.expected.msl tint: Add end-to-end tests for expressions using f16 types 2022-08-03 08:45:25 +00:00
f16.wgsl.expected.spvasm tint: Add end-to-end tests for expressions using f16 types 2022-08-03 08:45:25 +00:00
f16.wgsl.expected.wgsl tint: Add end-to-end tests for expressions using f16 types 2022-08-03 08:45:25 +00:00
f32.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
f32.wgsl.expected.dxc.hlsl tint: remove LoopToForLoop and FoldTrivialSingleUseLets transforms for HLSL and GLSL 2022-09-19 14:05:21 +00:00
f32.wgsl.expected.fxc.hlsl tint: remove LoopToForLoop and FoldTrivialSingleUseLets transforms for HLSL and GLSL 2022-09-19 14:05:21 +00:00
f32.wgsl.expected.glsl tint: remove LoopToForLoop and FoldTrivialSingleUseLets transforms for HLSL and GLSL 2022-09-19 14:05:21 +00:00
f32.wgsl.expected.msl tint/writer: Disable constant inlining for lets 2022-06-24 18:15:39 +00:00
f32.wgsl.expected.spvasm tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
f32.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
i32.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
i32.wgsl.expected.dxc.hlsl tint/transform: Implement div / mod polyfill 2022-11-09 22:04:11 +00:00
i32.wgsl.expected.fxc.hlsl tint/transform: Implement div / mod polyfill 2022-11-09 22:04:11 +00:00
i32.wgsl.expected.glsl tint/writer/glsl: Fix emission of lowest i32 value 2023-03-08 21:13:22 +00:00
i32.wgsl.expected.msl tint/transform: Implement div / mod polyfill 2022-11-09 22:04:11 +00:00
i32.wgsl.expected.spvasm tint/transform: Implement div / mod polyfill 2022-11-09 22:04:11 +00:00
i32.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
u32.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
u32.wgsl.expected.dxc.hlsl tint/transform: Implement div / mod polyfill 2022-11-09 22:04:11 +00:00
u32.wgsl.expected.fxc.hlsl tint/transform: Implement div / mod polyfill 2022-11-09 22:04:11 +00:00
u32.wgsl.expected.glsl tint/transform: Implement div / mod polyfill 2022-11-09 22:04:11 +00:00
u32.wgsl.expected.msl tint/transform: Implement div / mod polyfill 2022-11-09 22:04:11 +00:00
u32.wgsl.expected.spvasm tint/transform: Implement div / mod polyfill 2022-11-09 22:04:11 +00:00
u32.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00