mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-11 06:27:54 +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
@@ -52,7 +52,7 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_4) {
|
||||
while (true) {
|
||||
int const x_67 = i3;
|
||||
int const x_69 = x_7.one;
|
||||
if ((x_67 < (x_69 + 2))) {
|
||||
if ((x_67 < as_type<int>((as_type<uint>(x_69) + as_type<uint>(2))))) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
@@ -111,57 +111,57 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_4) {
|
||||
break;
|
||||
}
|
||||
int const x_135 = a;
|
||||
a = (x_135 + 1);
|
||||
a = as_type<int>((as_type<uint>(x_135) + as_type<uint>(1)));
|
||||
{
|
||||
int const x_137 = i9;
|
||||
i9 = (x_137 + 1);
|
||||
i9 = as_type<int>((as_type<uint>(x_137) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_139 = i8_1;
|
||||
i8_1 = (x_139 + 1);
|
||||
i8_1 = as_type<int>((as_type<uint>(x_139) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_141 = i7;
|
||||
i7 = (x_141 + 1);
|
||||
i7 = as_type<int>((as_type<uint>(x_141) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_143 = i6;
|
||||
i6 = (x_143 + 1);
|
||||
i6 = as_type<int>((as_type<uint>(x_143) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
{
|
||||
int const x_145 = i5;
|
||||
i5 = (x_145 + 1);
|
||||
i5 = as_type<int>((as_type<uint>(x_145) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_147 = i4;
|
||||
i4 = (x_147 + 1);
|
||||
i4 = as_type<int>((as_type<uint>(x_147) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_149 = i3;
|
||||
i3 = (x_149 + 1);
|
||||
i3 = as_type<int>((as_type<uint>(x_149) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_151 = i2;
|
||||
i2 = (x_151 + 1);
|
||||
i2 = as_type<int>((as_type<uint>(x_151) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_153 = i1;
|
||||
i1 = (x_153 + 1);
|
||||
i1 = as_type<int>((as_type<uint>(x_153) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_155 = i0;
|
||||
i0 = (x_155 + 1);
|
||||
i0 = as_type<int>((as_type<uint>(x_155) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
int const x_157 = a;
|
||||
|
||||
@@ -52,7 +52,7 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_4) {
|
||||
while (true) {
|
||||
int const x_67 = i3;
|
||||
int const x_69 = x_7.one;
|
||||
if ((x_67 < (x_69 + 2))) {
|
||||
if ((x_67 < as_type<int>((as_type<uint>(x_69) + as_type<uint>(2))))) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
@@ -111,57 +111,57 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_4) {
|
||||
break;
|
||||
}
|
||||
int const x_135 = a;
|
||||
a = (x_135 + 1);
|
||||
a = as_type<int>((as_type<uint>(x_135) + as_type<uint>(1)));
|
||||
{
|
||||
int const x_137 = i9;
|
||||
i9 = (x_137 + 1);
|
||||
i9 = as_type<int>((as_type<uint>(x_137) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_139 = i8_1;
|
||||
i8_1 = (x_139 + 1);
|
||||
i8_1 = as_type<int>((as_type<uint>(x_139) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_141 = i7;
|
||||
i7 = (x_141 + 1);
|
||||
i7 = as_type<int>((as_type<uint>(x_141) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_143 = i6;
|
||||
i6 = (x_143 + 1);
|
||||
i6 = as_type<int>((as_type<uint>(x_143) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
{
|
||||
int const x_145 = i5;
|
||||
i5 = (x_145 + 1);
|
||||
i5 = as_type<int>((as_type<uint>(x_145) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_147 = i4;
|
||||
i4 = (x_147 + 1);
|
||||
i4 = as_type<int>((as_type<uint>(x_147) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_149 = i3;
|
||||
i3 = (x_149 + 1);
|
||||
i3 = as_type<int>((as_type<uint>(x_149) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_151 = i2;
|
||||
i2 = (x_151 + 1);
|
||||
i2 = as_type<int>((as_type<uint>(x_151) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_153 = i1;
|
||||
i1 = (x_153 + 1);
|
||||
i1 = as_type<int>((as_type<uint>(x_153) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_155 = i0;
|
||||
i0 = (x_155 + 1);
|
||||
i0 = as_type<int>((as_type<uint>(x_155) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
int const x_157 = a;
|
||||
|
||||
Reference in New Issue
Block a user