mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-10 05:57:51 +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
@@ -162,55 +162,55 @@ void main_1(thread tint_array_wrapper* const tint_symbol_6, thread float4* const
|
||||
BST const x_86 = param_4;
|
||||
(*(tint_symbol_6)).arr[0] = x_86;
|
||||
int const x_88 = treeIndex_1;
|
||||
treeIndex_1 = (x_88 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_88) + as_type<uint>(1)));
|
||||
int const x_90 = treeIndex_1;
|
||||
param_6 = x_90;
|
||||
param_7 = 5;
|
||||
insert_i1_i1_(&(param_6), &(param_7), tint_symbol_6);
|
||||
int const x_92 = treeIndex_1;
|
||||
treeIndex_1 = (x_92 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_92) + as_type<uint>(1)));
|
||||
int const x_94 = treeIndex_1;
|
||||
param_8 = x_94;
|
||||
param_9 = 12;
|
||||
insert_i1_i1_(&(param_8), &(param_9), tint_symbol_6);
|
||||
int const x_96 = treeIndex_1;
|
||||
treeIndex_1 = (x_96 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_96) + as_type<uint>(1)));
|
||||
int const x_98 = treeIndex_1;
|
||||
param_10 = x_98;
|
||||
param_11 = 15;
|
||||
insert_i1_i1_(&(param_10), &(param_11), tint_symbol_6);
|
||||
int const x_100 = treeIndex_1;
|
||||
treeIndex_1 = (x_100 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_100) + as_type<uint>(1)));
|
||||
int const x_102 = treeIndex_1;
|
||||
param_12 = x_102;
|
||||
param_13 = 7;
|
||||
insert_i1_i1_(&(param_12), &(param_13), tint_symbol_6);
|
||||
int const x_104 = treeIndex_1;
|
||||
treeIndex_1 = (x_104 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_104) + as_type<uint>(1)));
|
||||
int const x_106 = treeIndex_1;
|
||||
param_14 = x_106;
|
||||
param_15 = 8;
|
||||
insert_i1_i1_(&(param_14), &(param_15), tint_symbol_6);
|
||||
int const x_108 = treeIndex_1;
|
||||
treeIndex_1 = (x_108 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_108) + as_type<uint>(1)));
|
||||
int const x_110 = treeIndex_1;
|
||||
param_16 = x_110;
|
||||
param_17 = 2;
|
||||
insert_i1_i1_(&(param_16), &(param_17), tint_symbol_6);
|
||||
int const x_112 = treeIndex_1;
|
||||
treeIndex_1 = (x_112 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_112) + as_type<uint>(1)));
|
||||
int const x_114 = treeIndex_1;
|
||||
param_18 = x_114;
|
||||
param_19 = 6;
|
||||
insert_i1_i1_(&(param_18), &(param_19), tint_symbol_6);
|
||||
int const x_116 = treeIndex_1;
|
||||
treeIndex_1 = (x_116 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_116) + as_type<uint>(1)));
|
||||
int const x_118 = treeIndex_1;
|
||||
param_20 = x_118;
|
||||
param_21 = 17;
|
||||
insert_i1_i1_(&(param_20), &(param_21), tint_symbol_6);
|
||||
int const x_120 = treeIndex_1;
|
||||
treeIndex_1 = (x_120 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_120) + as_type<uint>(1)));
|
||||
int const x_122 = treeIndex_1;
|
||||
param_22 = x_122;
|
||||
param_23 = 13;
|
||||
@@ -243,7 +243,7 @@ void main_1(thread tint_array_wrapper* const tint_symbol_6, thread float4* const
|
||||
int const x_144 = i;
|
||||
if ((x_143 == x_144)) {
|
||||
int const x_148 = count;
|
||||
count = (x_148 + 1);
|
||||
count = as_type<int>((as_type<uint>(x_148) + as_type<uint>(1)));
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -251,14 +251,14 @@ void main_1(thread tint_array_wrapper* const tint_symbol_6, thread float4* const
|
||||
int const x_137 = result;
|
||||
if ((x_137 == -1)) {
|
||||
int const x_141 = count;
|
||||
count = (x_141 + 1);
|
||||
count = as_type<int>((as_type<uint>(x_141) + as_type<uint>(1)));
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_150 = i;
|
||||
i = (x_150 + 1);
|
||||
i = as_type<int>((as_type<uint>(x_150) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
int const x_152 = count;
|
||||
|
||||
@@ -162,55 +162,55 @@ void main_1(thread tint_array_wrapper* const tint_symbol_6, thread float4* const
|
||||
BST const x_86 = param_4;
|
||||
(*(tint_symbol_6)).arr[0] = x_86;
|
||||
int const x_88 = treeIndex_1;
|
||||
treeIndex_1 = (x_88 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_88) + as_type<uint>(1)));
|
||||
int const x_90 = treeIndex_1;
|
||||
param_6 = x_90;
|
||||
param_7 = 5;
|
||||
insert_i1_i1_(&(param_6), &(param_7), tint_symbol_6);
|
||||
int const x_92 = treeIndex_1;
|
||||
treeIndex_1 = (x_92 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_92) + as_type<uint>(1)));
|
||||
int const x_94 = treeIndex_1;
|
||||
param_8 = x_94;
|
||||
param_9 = 12;
|
||||
insert_i1_i1_(&(param_8), &(param_9), tint_symbol_6);
|
||||
int const x_96 = treeIndex_1;
|
||||
treeIndex_1 = (x_96 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_96) + as_type<uint>(1)));
|
||||
int const x_98 = treeIndex_1;
|
||||
param_10 = x_98;
|
||||
param_11 = 15;
|
||||
insert_i1_i1_(&(param_10), &(param_11), tint_symbol_6);
|
||||
int const x_100 = treeIndex_1;
|
||||
treeIndex_1 = (x_100 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_100) + as_type<uint>(1)));
|
||||
int const x_102 = treeIndex_1;
|
||||
param_12 = x_102;
|
||||
param_13 = 7;
|
||||
insert_i1_i1_(&(param_12), &(param_13), tint_symbol_6);
|
||||
int const x_104 = treeIndex_1;
|
||||
treeIndex_1 = (x_104 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_104) + as_type<uint>(1)));
|
||||
int const x_106 = treeIndex_1;
|
||||
param_14 = x_106;
|
||||
param_15 = 8;
|
||||
insert_i1_i1_(&(param_14), &(param_15), tint_symbol_6);
|
||||
int const x_108 = treeIndex_1;
|
||||
treeIndex_1 = (x_108 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_108) + as_type<uint>(1)));
|
||||
int const x_110 = treeIndex_1;
|
||||
param_16 = x_110;
|
||||
param_17 = 2;
|
||||
insert_i1_i1_(&(param_16), &(param_17), tint_symbol_6);
|
||||
int const x_112 = treeIndex_1;
|
||||
treeIndex_1 = (x_112 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_112) + as_type<uint>(1)));
|
||||
int const x_114 = treeIndex_1;
|
||||
param_18 = x_114;
|
||||
param_19 = 6;
|
||||
insert_i1_i1_(&(param_18), &(param_19), tint_symbol_6);
|
||||
int const x_116 = treeIndex_1;
|
||||
treeIndex_1 = (x_116 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_116) + as_type<uint>(1)));
|
||||
int const x_118 = treeIndex_1;
|
||||
param_20 = x_118;
|
||||
param_21 = 17;
|
||||
insert_i1_i1_(&(param_20), &(param_21), tint_symbol_6);
|
||||
int const x_120 = treeIndex_1;
|
||||
treeIndex_1 = (x_120 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_120) + as_type<uint>(1)));
|
||||
int const x_122 = treeIndex_1;
|
||||
param_22 = x_122;
|
||||
param_23 = 13;
|
||||
@@ -243,7 +243,7 @@ void main_1(thread tint_array_wrapper* const tint_symbol_6, thread float4* const
|
||||
int const x_144 = i;
|
||||
if ((x_143 == x_144)) {
|
||||
int const x_148 = count;
|
||||
count = (x_148 + 1);
|
||||
count = as_type<int>((as_type<uint>(x_148) + as_type<uint>(1)));
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -251,14 +251,14 @@ void main_1(thread tint_array_wrapper* const tint_symbol_6, thread float4* const
|
||||
int const x_137 = result;
|
||||
if ((x_137 == -1)) {
|
||||
int const x_141 = count;
|
||||
count = (x_141 + 1);
|
||||
count = as_type<int>((as_type<uint>(x_141) + as_type<uint>(1)));
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_150 = i;
|
||||
i = (x_150 + 1);
|
||||
i = as_type<int>((as_type<uint>(x_150) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
int const x_152 = count;
|
||||
|
||||
@@ -162,55 +162,55 @@ void main_1(thread tint_array_wrapper* const tint_symbol_7, thread float4* const
|
||||
BST const x_90 = param_4;
|
||||
(*(tint_symbol_7)).arr[0] = x_90;
|
||||
int const x_92 = treeIndex_1;
|
||||
treeIndex_1 = (x_92 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_92) + as_type<uint>(1)));
|
||||
int const x_94 = treeIndex_1;
|
||||
param_6 = x_94;
|
||||
param_7 = 5;
|
||||
insert_i1_i1_(&(param_6), &(param_7), tint_symbol_7);
|
||||
int const x_96 = treeIndex_1;
|
||||
treeIndex_1 = (x_96 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_96) + as_type<uint>(1)));
|
||||
int const x_98 = treeIndex_1;
|
||||
param_8 = x_98;
|
||||
param_9 = 12;
|
||||
insert_i1_i1_(&(param_8), &(param_9), tint_symbol_7);
|
||||
int const x_100 = treeIndex_1;
|
||||
treeIndex_1 = (x_100 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_100) + as_type<uint>(1)));
|
||||
int const x_102 = treeIndex_1;
|
||||
param_10 = x_102;
|
||||
param_11 = 15;
|
||||
insert_i1_i1_(&(param_10), &(param_11), tint_symbol_7);
|
||||
int const x_104 = treeIndex_1;
|
||||
treeIndex_1 = (x_104 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_104) + as_type<uint>(1)));
|
||||
int const x_106 = treeIndex_1;
|
||||
param_12 = x_106;
|
||||
param_13 = 7;
|
||||
insert_i1_i1_(&(param_12), &(param_13), tint_symbol_7);
|
||||
int const x_108 = treeIndex_1;
|
||||
treeIndex_1 = (x_108 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_108) + as_type<uint>(1)));
|
||||
int const x_110 = treeIndex_1;
|
||||
param_14 = x_110;
|
||||
param_15 = 8;
|
||||
insert_i1_i1_(&(param_14), &(param_15), tint_symbol_7);
|
||||
int const x_112 = treeIndex_1;
|
||||
treeIndex_1 = (x_112 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_112) + as_type<uint>(1)));
|
||||
int const x_114 = treeIndex_1;
|
||||
param_16 = x_114;
|
||||
param_17 = 2;
|
||||
insert_i1_i1_(&(param_16), &(param_17), tint_symbol_7);
|
||||
int const x_116 = treeIndex_1;
|
||||
treeIndex_1 = (x_116 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_116) + as_type<uint>(1)));
|
||||
int const x_118 = treeIndex_1;
|
||||
param_18 = x_118;
|
||||
param_19 = 6;
|
||||
insert_i1_i1_(&(param_18), &(param_19), tint_symbol_7);
|
||||
int const x_120 = treeIndex_1;
|
||||
treeIndex_1 = (x_120 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_120) + as_type<uint>(1)));
|
||||
int const x_122 = treeIndex_1;
|
||||
param_20 = x_122;
|
||||
param_21 = 17;
|
||||
insert_i1_i1_(&(param_20), &(param_21), tint_symbol_7);
|
||||
int const x_124 = treeIndex_1;
|
||||
treeIndex_1 = (x_124 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_124) + as_type<uint>(1)));
|
||||
int const x_126 = treeIndex_1;
|
||||
param_22 = x_126;
|
||||
param_23 = 13;
|
||||
@@ -253,7 +253,7 @@ void main_1(thread tint_array_wrapper* const tint_symbol_7, thread float4* const
|
||||
bool const x_156 = x_156_phi;
|
||||
if (x_156) {
|
||||
int const x_159 = count;
|
||||
count = (x_159 + 1);
|
||||
count = as_type<int>((as_type<uint>(x_159) + as_type<uint>(1)));
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -261,14 +261,14 @@ void main_1(thread tint_array_wrapper* const tint_symbol_7, thread float4* const
|
||||
int const x_141 = result;
|
||||
if ((x_141 == -1)) {
|
||||
int const x_145 = count;
|
||||
count = (x_145 + 1);
|
||||
count = as_type<int>((as_type<uint>(x_145) + as_type<uint>(1)));
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_161 = i;
|
||||
i = (x_161 + 1);
|
||||
i = as_type<int>((as_type<uint>(x_161) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
int const x_163 = count;
|
||||
|
||||
@@ -162,55 +162,55 @@ void main_1(thread tint_array_wrapper* const tint_symbol_7, thread float4* const
|
||||
BST const x_90 = param_4;
|
||||
(*(tint_symbol_7)).arr[0] = x_90;
|
||||
int const x_92 = treeIndex_1;
|
||||
treeIndex_1 = (x_92 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_92) + as_type<uint>(1)));
|
||||
int const x_94 = treeIndex_1;
|
||||
param_6 = x_94;
|
||||
param_7 = 5;
|
||||
insert_i1_i1_(&(param_6), &(param_7), tint_symbol_7);
|
||||
int const x_96 = treeIndex_1;
|
||||
treeIndex_1 = (x_96 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_96) + as_type<uint>(1)));
|
||||
int const x_98 = treeIndex_1;
|
||||
param_8 = x_98;
|
||||
param_9 = 12;
|
||||
insert_i1_i1_(&(param_8), &(param_9), tint_symbol_7);
|
||||
int const x_100 = treeIndex_1;
|
||||
treeIndex_1 = (x_100 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_100) + as_type<uint>(1)));
|
||||
int const x_102 = treeIndex_1;
|
||||
param_10 = x_102;
|
||||
param_11 = 15;
|
||||
insert_i1_i1_(&(param_10), &(param_11), tint_symbol_7);
|
||||
int const x_104 = treeIndex_1;
|
||||
treeIndex_1 = (x_104 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_104) + as_type<uint>(1)));
|
||||
int const x_106 = treeIndex_1;
|
||||
param_12 = x_106;
|
||||
param_13 = 7;
|
||||
insert_i1_i1_(&(param_12), &(param_13), tint_symbol_7);
|
||||
int const x_108 = treeIndex_1;
|
||||
treeIndex_1 = (x_108 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_108) + as_type<uint>(1)));
|
||||
int const x_110 = treeIndex_1;
|
||||
param_14 = x_110;
|
||||
param_15 = 8;
|
||||
insert_i1_i1_(&(param_14), &(param_15), tint_symbol_7);
|
||||
int const x_112 = treeIndex_1;
|
||||
treeIndex_1 = (x_112 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_112) + as_type<uint>(1)));
|
||||
int const x_114 = treeIndex_1;
|
||||
param_16 = x_114;
|
||||
param_17 = 2;
|
||||
insert_i1_i1_(&(param_16), &(param_17), tint_symbol_7);
|
||||
int const x_116 = treeIndex_1;
|
||||
treeIndex_1 = (x_116 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_116) + as_type<uint>(1)));
|
||||
int const x_118 = treeIndex_1;
|
||||
param_18 = x_118;
|
||||
param_19 = 6;
|
||||
insert_i1_i1_(&(param_18), &(param_19), tint_symbol_7);
|
||||
int const x_120 = treeIndex_1;
|
||||
treeIndex_1 = (x_120 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_120) + as_type<uint>(1)));
|
||||
int const x_122 = treeIndex_1;
|
||||
param_20 = x_122;
|
||||
param_21 = 17;
|
||||
insert_i1_i1_(&(param_20), &(param_21), tint_symbol_7);
|
||||
int const x_124 = treeIndex_1;
|
||||
treeIndex_1 = (x_124 + 1);
|
||||
treeIndex_1 = as_type<int>((as_type<uint>(x_124) + as_type<uint>(1)));
|
||||
int const x_126 = treeIndex_1;
|
||||
param_22 = x_126;
|
||||
param_23 = 13;
|
||||
@@ -253,7 +253,7 @@ void main_1(thread tint_array_wrapper* const tint_symbol_7, thread float4* const
|
||||
bool const x_156 = x_156_phi;
|
||||
if (x_156) {
|
||||
int const x_159 = count;
|
||||
count = (x_159 + 1);
|
||||
count = as_type<int>((as_type<uint>(x_159) + as_type<uint>(1)));
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -261,14 +261,14 @@ void main_1(thread tint_array_wrapper* const tint_symbol_7, thread float4* const
|
||||
int const x_141 = result;
|
||||
if ((x_141 == -1)) {
|
||||
int const x_145 = count;
|
||||
count = (x_145 + 1);
|
||||
count = as_type<int>((as_type<uint>(x_145) + as_type<uint>(1)));
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_161 = i;
|
||||
i = (x_161 + 1);
|
||||
i = as_type<int>((as_type<uint>(x_161) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
int const x_163 = count;
|
||||
|
||||
Reference in New Issue
Block a user