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:
Antonio Maiorano
2021-07-30 18:59:06 +00:00
committed by Tint LUCI CQ
parent 9bdf2dcc6b
commit d388bc9b36
686 changed files with 4111 additions and 3079 deletions

View File

@@ -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;

View File

@@ -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;