mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-10 14:08:04 +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
@@ -147,52 +147,52 @@ void main_1(constant buf0& x_6, constant buf1& x_8, thread float4* const tint_sy
|
||||
sums.arr[x_53] = (x_199 + x_197);
|
||||
{
|
||||
int const x_54 = j;
|
||||
j = (x_54 - 1);
|
||||
j = as_type<int>((as_type<uint>(x_54) - as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_56 = i;
|
||||
i = (x_56 + 1);
|
||||
i = as_type<int>((as_type<uint>(x_56) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_58 = h;
|
||||
h = (x_58 + 1);
|
||||
h = as_type<int>((as_type<uint>(x_58) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_60 = g;
|
||||
g = (x_60 + 1);
|
||||
g = as_type<int>((as_type<uint>(x_60) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_62 = f;
|
||||
f = (x_62 + 1);
|
||||
f = as_type<int>((as_type<uint>(x_62) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_64 = e;
|
||||
e = (x_64 + 1);
|
||||
e = as_type<int>((as_type<uint>(x_64) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_66 = d;
|
||||
d = (x_66 + 1);
|
||||
d = as_type<int>((as_type<uint>(x_66) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_68 = c;
|
||||
c = (x_68 + 1);
|
||||
c = as_type<int>((as_type<uint>(x_68) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_70 = b;
|
||||
b = (x_70 + 1);
|
||||
b = as_type<int>((as_type<uint>(x_70) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_72 = a;
|
||||
a = (x_72 + 1);
|
||||
a = as_type<int>((as_type<uint>(x_72) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
int const x_74 = x_6.x_GLF_uniform_int_values.arr[1].el;
|
||||
|
||||
@@ -147,52 +147,52 @@ void main_1(constant buf0& x_6, constant buf1& x_8, thread float4* const tint_sy
|
||||
sums.arr[x_53] = (x_199 + x_197);
|
||||
{
|
||||
int const x_54 = j;
|
||||
j = (x_54 - 1);
|
||||
j = as_type<int>((as_type<uint>(x_54) - as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_56 = i;
|
||||
i = (x_56 + 1);
|
||||
i = as_type<int>((as_type<uint>(x_56) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_58 = h;
|
||||
h = (x_58 + 1);
|
||||
h = as_type<int>((as_type<uint>(x_58) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_60 = g;
|
||||
g = (x_60 + 1);
|
||||
g = as_type<int>((as_type<uint>(x_60) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_62 = f;
|
||||
f = (x_62 + 1);
|
||||
f = as_type<int>((as_type<uint>(x_62) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_64 = e;
|
||||
e = (x_64 + 1);
|
||||
e = as_type<int>((as_type<uint>(x_64) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_66 = d;
|
||||
d = (x_66 + 1);
|
||||
d = as_type<int>((as_type<uint>(x_66) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_68 = c;
|
||||
c = (x_68 + 1);
|
||||
c = as_type<int>((as_type<uint>(x_68) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_70 = b;
|
||||
b = (x_70 + 1);
|
||||
b = as_type<int>((as_type<uint>(x_70) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_72 = a;
|
||||
a = (x_72 + 1);
|
||||
a = as_type<int>((as_type<uint>(x_72) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
int const x_74 = x_6.x_GLF_uniform_int_values.arr[1].el;
|
||||
|
||||
Reference in New Issue
Block a user