mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 13:38:00 +00:00
Restore "MSL writer: make signed int overflow defined behaviour"
This reverts commit e33b0baa08.
Added tests/expressions/literals/intmin.wgsl test.
Bug: tint:124
Change-Id: I3d46f939ff20fa377ddb5fcb52f9afe728b8e430
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/60441
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
committed by
Tint LUCI CQ
parent
9bdf2dcc6b
commit
d388bc9b36
@@ -18,7 +18,7 @@ kernel void tint_symbol() {
|
||||
int const x = 42;
|
||||
tint_array_wrapper const empty = {.arr={}};
|
||||
tint_array_wrapper const nonempty = {.arr={1, 2, 3, 4}};
|
||||
tint_array_wrapper const nonempty_with_expr = {.arr={1, x, (x + 1), nonempty.arr[3]}};
|
||||
tint_array_wrapper const nonempty_with_expr = {.arr={1, x, as_type<int>((as_type<uint>(x) + as_type<uint>(1))), nonempty.arr[3]}};
|
||||
tint_array_wrapper_1 const nested_empty = {.arr={}};
|
||||
tint_array_wrapper const tint_symbol_1 = {.arr={1, 2, 3, 4}};
|
||||
tint_array_wrapper const tint_symbol_2 = {.arr={5, 6, 7, 8}};
|
||||
@@ -29,15 +29,15 @@ kernel void tint_symbol() {
|
||||
tint_array_wrapper const tint_symbol_7 = {.arr={21, 22, 23, 24}};
|
||||
tint_array_wrapper_2 const tint_symbol_8 = {.arr={tint_symbol_5, tint_symbol_6, tint_symbol_7}};
|
||||
tint_array_wrapper_1 const nested_nonempty = {.arr={tint_symbol_4, tint_symbol_8}};
|
||||
tint_array_wrapper const tint_symbol_9 = {.arr={1, 2, x, (x + 1)}};
|
||||
tint_array_wrapper const tint_symbol_10 = {.arr={5, 6, nonempty.arr[2], (nonempty.arr[3] + 1)}};
|
||||
tint_array_wrapper const tint_symbol_9 = {.arr={1, 2, x, as_type<int>((as_type<uint>(x) + as_type<uint>(1)))}};
|
||||
tint_array_wrapper const tint_symbol_10 = {.arr={5, 6, nonempty.arr[2], as_type<int>((as_type<uint>(nonempty.arr[3]) + as_type<uint>(1)))}};
|
||||
tint_array_wrapper_2 const tint_symbol_11 = {.arr={tint_symbol_9, tint_symbol_10, nonempty}};
|
||||
tint_array_wrapper_1 const nested_nonempty_with_expr = {.arr={tint_symbol_11, nested_nonempty.arr[1]}};
|
||||
tint_array_wrapper const tint_symbol_12 = {.arr={}};
|
||||
int const subexpr_empty = tint_symbol_12.arr[1];
|
||||
tint_array_wrapper const tint_symbol_13 = {.arr={1, 2, 3, 4}};
|
||||
int const subexpr_nonempty = tint_symbol_13.arr[2];
|
||||
tint_array_wrapper const tint_symbol_14 = {.arr={1, x, (x + 1), nonempty.arr[3]}};
|
||||
tint_array_wrapper const tint_symbol_14 = {.arr={1, x, as_type<int>((as_type<uint>(x) + as_type<uint>(1))), nonempty.arr[3]}};
|
||||
int const subexpr_nonempty_with_expr = tint_symbol_14.arr[2];
|
||||
tint_array_wrapper_3 const tint_symbol_15 = {.arr={}};
|
||||
tint_array_wrapper const subexpr_nested_empty = tint_symbol_15.arr[1];
|
||||
@@ -45,7 +45,7 @@ kernel void tint_symbol() {
|
||||
tint_array_wrapper const tint_symbol_17 = {.arr={5, 6, 7, 8}};
|
||||
tint_array_wrapper_3 const tint_symbol_18 = {.arr={tint_symbol_16, tint_symbol_17}};
|
||||
tint_array_wrapper const subexpr_nested_nonempty = tint_symbol_18.arr[1];
|
||||
tint_array_wrapper const tint_symbol_19 = {.arr={1, x, (x + 1), nonempty.arr[3]}};
|
||||
tint_array_wrapper const tint_symbol_19 = {.arr={1, x, as_type<int>((as_type<uint>(x) + as_type<uint>(1))), nonempty.arr[3]}};
|
||||
tint_array_wrapper_3 const tint_symbol_20 = {.arr={tint_symbol_19, nested_nonempty.arr[1].arr[2]}};
|
||||
tint_array_wrapper const subexpr_nested_nonempty_with_expr = tint_symbol_20.arr[1];
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user