mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 23:56:16 +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
@@ -39,7 +39,7 @@ void main_1(constant buf0& x_9, thread float4* const tint_symbol_4) {
|
||||
break;
|
||||
}
|
||||
int const x_20 = ll_1;
|
||||
ll_1 = (x_20 + 1);
|
||||
ll_1 = as_type<int>((as_type<uint>(x_20) + as_type<uint>(1)));
|
||||
int const x_22 = x_9.injected;
|
||||
z = x_22;
|
||||
ll_2 = 0;
|
||||
@@ -56,7 +56,7 @@ void main_1(constant buf0& x_9, thread float4* const tint_symbol_4) {
|
||||
break;
|
||||
}
|
||||
int const x_26 = ll_2;
|
||||
ll_2 = (x_26 + 1);
|
||||
ll_2 = as_type<int>((as_type<uint>(x_26) + as_type<uint>(1)));
|
||||
float4x3 const x_98 = m43;
|
||||
tempm43 = x_98;
|
||||
ll_3 = 0;
|
||||
@@ -77,7 +77,7 @@ void main_1(constant buf0& x_9, thread float4* const tint_symbol_4) {
|
||||
tempm43[select(0, x_31, ((x_29 >= 0) & (x_30 < 4)))][select(0, x_34, ((x_32 >= 0) & (x_33 < 3)))] = 1.0f;
|
||||
{
|
||||
int const x_35 = c;
|
||||
c = (x_35 + 1);
|
||||
c = as_type<int>((as_type<uint>(x_35) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
int const x_37 = idx;
|
||||
@@ -90,11 +90,11 @@ void main_1(constant buf0& x_9, thread float4* const tint_symbol_4) {
|
||||
GLF_live6sums.arr[x_117] = (x_121 + x_119);
|
||||
{
|
||||
int const x_41 = ctr;
|
||||
ctr = (x_41 + 1);
|
||||
ctr = as_type<int>((as_type<uint>(x_41) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
int const x_43 = idx;
|
||||
idx = (x_43 + 1);
|
||||
idx = as_type<int>((as_type<uint>(x_43) + as_type<uint>(1)));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ void main_1(constant buf0& x_9, thread float4* const tint_symbol_4) {
|
||||
break;
|
||||
}
|
||||
int const x_20 = ll_1;
|
||||
ll_1 = (x_20 + 1);
|
||||
ll_1 = as_type<int>((as_type<uint>(x_20) + as_type<uint>(1)));
|
||||
int const x_22 = x_9.injected;
|
||||
z = x_22;
|
||||
ll_2 = 0;
|
||||
@@ -56,7 +56,7 @@ void main_1(constant buf0& x_9, thread float4* const tint_symbol_4) {
|
||||
break;
|
||||
}
|
||||
int const x_26 = ll_2;
|
||||
ll_2 = (x_26 + 1);
|
||||
ll_2 = as_type<int>((as_type<uint>(x_26) + as_type<uint>(1)));
|
||||
float4x3 const x_98 = m43;
|
||||
tempm43 = x_98;
|
||||
ll_3 = 0;
|
||||
@@ -77,7 +77,7 @@ void main_1(constant buf0& x_9, thread float4* const tint_symbol_4) {
|
||||
tempm43[select(0, x_31, ((x_29 >= 0) && (x_30 < 4)))][select(0, x_34, ((x_32 >= 0) && (x_33 < 3)))] = 1.0f;
|
||||
{
|
||||
int const x_35 = c;
|
||||
c = (x_35 + 1);
|
||||
c = as_type<int>((as_type<uint>(x_35) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
int const x_37 = idx;
|
||||
@@ -90,11 +90,11 @@ void main_1(constant buf0& x_9, thread float4* const tint_symbol_4) {
|
||||
GLF_live6sums.arr[x_117] = (x_121 + x_119);
|
||||
{
|
||||
int const x_41 = ctr;
|
||||
ctr = (x_41 + 1);
|
||||
ctr = as_type<int>((as_type<uint>(x_41) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
int const x_43 = idx;
|
||||
idx = (x_43 + 1);
|
||||
idx = as_type<int>((as_type<uint>(x_43) + as_type<uint>(1)));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user