dawn-cmake/test/tint/statements/compound_assign/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
..
and.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
and.wgsl.expected.dxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
and.wgsl.expected.fxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
and.wgsl.expected.glsl Tint/transform: make AddBlockAttribute always do wrapping if possible 2022-11-02 02:25:38 +00:00
and.wgsl.expected.msl msl: Implement compound assignment 2022-03-31 22:30:10 +00:00
and.wgsl.expected.spvasm Tint/transform: make AddBlockAttribute always do wrapping if possible 2022-11-02 02:25:38 +00:00
and.wgsl.expected.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
divide.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
divide.wgsl.expected.dxc.hlsl Move tint::transform::Robustness to a santizier transform 2023-03-02 20:48:48 +00:00
divide.wgsl.expected.fxc.hlsl Move tint::transform::Robustness to a santizier transform 2023-03-02 20:48:48 +00:00
divide.wgsl.expected.glsl tint/writer/glsl: Fix emission of lowest i32 value 2023-03-08 21:13:22 +00:00
divide.wgsl.expected.msl Move tint::transform::Robustness to a santizier transform 2023-03-02 20:48:48 +00:00
divide.wgsl.expected.spvasm Move tint::transform::Robustness to a santizier transform 2023-03-02 20:48:48 +00:00
divide.wgsl.expected.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
minus.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
minus.wgsl.expected.dxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
minus.wgsl.expected.fxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
minus.wgsl.expected.glsl Tint/transform: make AddBlockAttribute always do wrapping if possible 2022-11-02 02:25:38 +00:00
minus.wgsl.expected.msl msl: Implement compound assignment 2022-03-31 22:30:10 +00:00
minus.wgsl.expected.spvasm Tint/transform: make AddBlockAttribute always do wrapping if possible 2022-11-02 02:25:38 +00:00
minus.wgsl.expected.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
modulo.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
modulo.wgsl.expected.dxc.hlsl Move tint::transform::Robustness to a santizier transform 2023-03-02 20:48:48 +00:00
modulo.wgsl.expected.fxc.hlsl Move tint::transform::Robustness to a santizier transform 2023-03-02 20:48:48 +00:00
modulo.wgsl.expected.glsl tint/writer/glsl: Fix emission of lowest i32 value 2023-03-08 21:13:22 +00:00
modulo.wgsl.expected.msl Move tint::transform::Robustness to a santizier transform 2023-03-02 20:48:48 +00:00
modulo.wgsl.expected.spvasm Move tint::transform::Robustness to a santizier transform 2023-03-02 20:48:48 +00:00
modulo.wgsl.expected.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
or.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
or.wgsl.expected.dxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
or.wgsl.expected.fxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
or.wgsl.expected.glsl Tint/transform: make AddBlockAttribute always do wrapping if possible 2022-11-02 02:25:38 +00:00
or.wgsl.expected.msl msl: Implement compound assignment 2022-03-31 22:30:10 +00:00
or.wgsl.expected.spvasm Tint/transform: make AddBlockAttribute always do wrapping if possible 2022-11-02 02:25:38 +00:00
or.wgsl.expected.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
plus.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
plus.wgsl.expected.dxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
plus.wgsl.expected.fxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
plus.wgsl.expected.glsl Tint/transform: make AddBlockAttribute always do wrapping if possible 2022-11-02 02:25:38 +00:00
plus.wgsl.expected.msl msl: Implement compound assignment 2022-03-31 22:30:10 +00:00
plus.wgsl.expected.spvasm Tint/transform: make AddBlockAttribute always do wrapping if possible 2022-11-02 02:25:38 +00:00
plus.wgsl.expected.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
shift_left.wgsl Add support for >>= and <<=. 2022-08-02 18:18:05 +00:00
shift_left.wgsl.expected.dxc.hlsl Add support for >>= and <<=. 2022-08-02 18:18:05 +00:00
shift_left.wgsl.expected.fxc.hlsl Add support for >>= and <<=. 2022-08-02 18:18:05 +00:00
shift_left.wgsl.expected.glsl Tint/transform: make AddBlockAttribute always do wrapping if possible 2022-11-02 02:25:38 +00:00
shift_left.wgsl.expected.msl Add support for >>= and <<=. 2022-08-02 18:18:05 +00:00
shift_left.wgsl.expected.spvasm Tint/transform: make AddBlockAttribute always do wrapping if possible 2022-11-02 02:25:38 +00:00
shift_left.wgsl.expected.wgsl Add support for >>= and <<=. 2022-08-02 18:18:05 +00:00
shift_right.wgsl Add support for >>= and <<=. 2022-08-02 18:18:05 +00:00
shift_right.wgsl.expected.dxc.hlsl Add support for >>= and <<=. 2022-08-02 18:18:05 +00:00
shift_right.wgsl.expected.fxc.hlsl Add support for >>= and <<=. 2022-08-02 18:18:05 +00:00
shift_right.wgsl.expected.glsl Tint/transform: make AddBlockAttribute always do wrapping if possible 2022-11-02 02:25:38 +00:00
shift_right.wgsl.expected.msl Add support for >>= and <<=. 2022-08-02 18:18:05 +00:00
shift_right.wgsl.expected.spvasm Tint/transform: make AddBlockAttribute always do wrapping if possible 2022-11-02 02:25:38 +00:00
shift_right.wgsl.expected.wgsl Add support for >>= and <<=. 2022-08-02 18:18:05 +00:00
times.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
times.wgsl.expected.dxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
times.wgsl.expected.fxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
times.wgsl.expected.glsl Tint/transform: make AddBlockAttribute always do wrapping if possible 2022-11-02 02:25:38 +00:00
times.wgsl.expected.msl msl: Implement compound assignment 2022-03-31 22:30:10 +00:00
times.wgsl.expected.spvasm Tint/transform: make AddBlockAttribute always do wrapping if possible 2022-11-02 02:25:38 +00:00
times.wgsl.expected.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
xor.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
xor.wgsl.expected.dxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
xor.wgsl.expected.fxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
xor.wgsl.expected.glsl Tint/transform: make AddBlockAttribute always do wrapping if possible 2022-11-02 02:25:38 +00:00
xor.wgsl.expected.msl msl: Implement compound assignment 2022-03-31 22:30:10 +00:00
xor.wgsl.expected.spvasm Tint/transform: make AddBlockAttribute always do wrapping if possible 2022-11-02 02:25:38 +00:00
xor.wgsl.expected.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00