mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 00:17:03 +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
@@ -154,59 +154,59 @@ void main_1(constant buf0& x_7, constant buf1& x_11, thread float4* const tint_s
|
||||
}
|
||||
{
|
||||
int const x_57 = i_10;
|
||||
i_10 = (x_57 + 1);
|
||||
i_10 = as_type<int>((as_type<uint>(x_57) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_59 = i_9;
|
||||
i_9 = (x_59 + 1);
|
||||
i_9 = as_type<int>((as_type<uint>(x_59) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_61 = i_8;
|
||||
i_8 = (x_61 + 1);
|
||||
i_8 = as_type<int>((as_type<uint>(x_61) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_63 = i_7;
|
||||
i_7 = (x_63 + 1);
|
||||
i_7 = as_type<int>((as_type<uint>(x_63) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_65 = i_6;
|
||||
i_6 = (x_65 + 1);
|
||||
i_6 = as_type<int>((as_type<uint>(x_65) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_67 = i_5;
|
||||
i_5 = (x_67 + 1);
|
||||
i_5 = as_type<int>((as_type<uint>(x_67) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_69 = i_4;
|
||||
i_4 = (x_69 + 1);
|
||||
i_4 = as_type<int>((as_type<uint>(x_69) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_71 = i_3;
|
||||
i_3 = (x_71 + 1);
|
||||
i_3 = as_type<int>((as_type<uint>(x_71) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_73 = i_2;
|
||||
i_2 = (x_73 + 1);
|
||||
i_2 = as_type<int>((as_type<uint>(x_73) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_75 = i_1;
|
||||
i_1 = (x_75 + 1);
|
||||
i_1 = as_type<int>((as_type<uint>(x_75) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
float const x_204 = b;
|
||||
b = (x_204 + 1.0f);
|
||||
{
|
||||
int const x_77 = i;
|
||||
i = (x_77 + 1);
|
||||
i = as_type<int>((as_type<uint>(x_77) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
float const x_206 = b;
|
||||
|
||||
@@ -154,59 +154,59 @@ void main_1(constant buf0& x_7, constant buf1& x_11, thread float4* const tint_s
|
||||
}
|
||||
{
|
||||
int const x_57 = i_10;
|
||||
i_10 = (x_57 + 1);
|
||||
i_10 = as_type<int>((as_type<uint>(x_57) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_59 = i_9;
|
||||
i_9 = (x_59 + 1);
|
||||
i_9 = as_type<int>((as_type<uint>(x_59) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_61 = i_8;
|
||||
i_8 = (x_61 + 1);
|
||||
i_8 = as_type<int>((as_type<uint>(x_61) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_63 = i_7;
|
||||
i_7 = (x_63 + 1);
|
||||
i_7 = as_type<int>((as_type<uint>(x_63) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_65 = i_6;
|
||||
i_6 = (x_65 + 1);
|
||||
i_6 = as_type<int>((as_type<uint>(x_65) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_67 = i_5;
|
||||
i_5 = (x_67 + 1);
|
||||
i_5 = as_type<int>((as_type<uint>(x_67) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_69 = i_4;
|
||||
i_4 = (x_69 + 1);
|
||||
i_4 = as_type<int>((as_type<uint>(x_69) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_71 = i_3;
|
||||
i_3 = (x_71 + 1);
|
||||
i_3 = as_type<int>((as_type<uint>(x_71) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_73 = i_2;
|
||||
i_2 = (x_73 + 1);
|
||||
i_2 = as_type<int>((as_type<uint>(x_73) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_75 = i_1;
|
||||
i_1 = (x_75 + 1);
|
||||
i_1 = as_type<int>((as_type<uint>(x_75) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
float const x_204 = b;
|
||||
b = (x_204 + 1.0f);
|
||||
{
|
||||
int const x_77 = i;
|
||||
i = (x_77 + 1);
|
||||
i = as_type<int>((as_type<uint>(x_77) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
float const x_206 = b;
|
||||
|
||||
Reference in New Issue
Block a user