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
@@ -39,14 +39,14 @@ void main_1(constant buf0& x_9, device doesNotMatter& x_12, thread float4* const
|
||||
}
|
||||
{
|
||||
int const x_76 = j;
|
||||
j = (x_76 + 1);
|
||||
j = as_type<int>((as_type<uint>(x_76) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
{
|
||||
int const x_78 = i;
|
||||
i = (x_78 + 1);
|
||||
i = as_type<int>((as_type<uint>(x_78) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
float const x_81 = x_9.injectionSwitch.x;
|
||||
@@ -75,7 +75,7 @@ void main_1(constant buf0& x_9, device doesNotMatter& x_12, thread float4* const
|
||||
threadgroup_barrier(mem_flags::mem_threadgroup);
|
||||
{
|
||||
int const x_101 = GLF_dead3k;
|
||||
GLF_dead3k = (x_101 + 1);
|
||||
GLF_dead3k = as_type<int>((as_type<uint>(x_101) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
x_12.x_compute_data[0] = 42u;
|
||||
|
||||
@@ -39,14 +39,14 @@ void main_1(constant buf0& x_9, device doesNotMatter& x_12, thread float4* const
|
||||
}
|
||||
{
|
||||
int const x_76 = j;
|
||||
j = (x_76 + 1);
|
||||
j = as_type<int>((as_type<uint>(x_76) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
{
|
||||
int const x_78 = i;
|
||||
i = (x_78 + 1);
|
||||
i = as_type<int>((as_type<uint>(x_78) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
float const x_81 = x_9.injectionSwitch.x;
|
||||
@@ -75,7 +75,7 @@ void main_1(constant buf0& x_9, device doesNotMatter& x_12, thread float4* const
|
||||
threadgroup_barrier(mem_flags::mem_threadgroup);
|
||||
{
|
||||
int const x_101 = GLF_dead3k;
|
||||
GLF_dead3k = (x_101 + 1);
|
||||
GLF_dead3k = as_type<int>((as_type<uint>(x_101) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
x_12.x_compute_data[0] = 42u;
|
||||
|
||||
Reference in New Issue
Block a user