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

@@ -72,7 +72,7 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread float
break;
}
{
x_59 = (x_58 + 1);
x_59 = as_type<int>((as_type<uint>(x_58) + as_type<uint>(1)));
x_55_phi = x_56;
x_58_phi = x_59;
}
@@ -139,7 +139,7 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread float
break;
}
{
x_96 = (x_95 + 1);
x_96 = as_type<int>((as_type<uint>(x_95) + as_type<uint>(1)));
x_92_phi = x_93;
x_95_phi = x_96;
}
@@ -176,7 +176,7 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread float
c[x_135_save] = (x_140 * x_141);
}
{
x_130 = (x_129 + 1);
x_130 = as_type<int>((as_type<uint>(x_129) + as_type<uint>(1)));
x_129_phi = x_130;
}
}

View File

@@ -72,7 +72,7 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread float
break;
}
{
x_59 = (x_58 + 1);
x_59 = as_type<int>((as_type<uint>(x_58) + as_type<uint>(1)));
x_55_phi = x_56;
x_58_phi = x_59;
}
@@ -139,7 +139,7 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread float
break;
}
{
x_96 = (x_95 + 1);
x_96 = as_type<int>((as_type<uint>(x_95) + as_type<uint>(1)));
x_92_phi = x_93;
x_95_phi = x_96;
}
@@ -176,7 +176,7 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread float
c[x_135_save] = (x_140 * x_141);
}
{
x_130 = (x_129 + 1);
x_130 = as_type<int>((as_type<uint>(x_129) + as_type<uint>(1)));
x_129_phi = x_130;
}
}

View File

@@ -74,7 +74,7 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread float
break;
}
{
x_61 = (x_60 + 1);
x_61 = as_type<int>((as_type<uint>(x_60) + as_type<uint>(1)));
x_57_phi = x_58;
x_60_phi = x_61;
}
@@ -144,7 +144,7 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread float
break;
}
{
x_102 = (x_101 + 1);
x_102 = as_type<int>((as_type<uint>(x_101) + as_type<uint>(1)));
x_98_phi = x_99;
x_101_phi = x_102;
}
@@ -181,7 +181,7 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread float
c[x_141_save] = (x_146 * x_147);
}
{
x_136 = (x_135 + 1);
x_136 = as_type<int>((as_type<uint>(x_135) + as_type<uint>(1)));
x_135_phi = x_136;
}
}

View File

@@ -74,7 +74,7 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread float
break;
}
{
x_61 = (x_60 + 1);
x_61 = as_type<int>((as_type<uint>(x_60) + as_type<uint>(1)));
x_57_phi = x_58;
x_60_phi = x_61;
}
@@ -144,7 +144,7 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread float
break;
}
{
x_102 = (x_101 + 1);
x_102 = as_type<int>((as_type<uint>(x_101) + as_type<uint>(1)));
x_98_phi = x_99;
x_101_phi = x_102;
}
@@ -181,7 +181,7 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread float
c[x_141_save] = (x_146 * x_147);
}
{
x_136 = (x_135 + 1);
x_136 = as_type<int>((as_type<uint>(x_135) + as_type<uint>(1)));
x_135_phi = x_136;
}
}