mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 15:46:28 +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
@@ -56,7 +56,7 @@ void main_1(constant buf0& x_11, thread float4* const tint_symbol_6) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
int const x_22 = (x_21 - 1);
|
||||
int const x_22 = as_type<int>((as_type<uint>(x_21) - as_type<uint>(1)));
|
||||
x_19 = x_22;
|
||||
int const x_23 = x_24.arr[x_22];
|
||||
if ((x_23 == 1)) {
|
||||
@@ -139,7 +139,7 @@ int binarySearch_struct_tmp_struct_i1_1_1_(thread tmp_struct* const obj) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
int const x_13 = (x_15 - 1);
|
||||
int const x_13 = as_type<int>((as_type<uint>(x_15) - as_type<uint>(1)));
|
||||
zero = x_13;
|
||||
int const x_14 = (*(obj)).nmb.arr[x_13];
|
||||
if ((x_14 == 1)) {
|
||||
|
||||
@@ -56,7 +56,7 @@ void main_1(constant buf0& x_11, thread float4* const tint_symbol_6) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
int const x_22 = (x_21 - 1);
|
||||
int const x_22 = as_type<int>((as_type<uint>(x_21) - as_type<uint>(1)));
|
||||
x_19 = x_22;
|
||||
int const x_23 = x_24.arr[x_22];
|
||||
if ((x_23 == 1)) {
|
||||
@@ -139,7 +139,7 @@ int binarySearch_struct_tmp_struct_i1_1_1_(thread tmp_struct* const obj) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
int const x_13 = (x_15 - 1);
|
||||
int const x_13 = as_type<int>((as_type<uint>(x_15) - as_type<uint>(1)));
|
||||
zero = x_13;
|
||||
int const x_14 = (*(obj)).nmb.arr[x_13];
|
||||
if ((x_14 == 1)) {
|
||||
|
||||
Reference in New Issue
Block a user