vkd3d-shader/hlsl: Test the INT_MIN / -1 constant folding special case.

Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Giovanni Mascellani 2022-04-27 10:56:21 +02:00 committed by Alexandre Julliard
parent 4d181bc622
commit 6b6ff48ece

View File

@ -41,3 +41,19 @@ float4 main() : SV_TARGET
return x % y; return x % y;
} }
[require]
shader model >= 4.0
[pixel shader]
float4 main() : SV_TARGET
{
int x = -2147483648;
int y = -1;
return x / y;
}
[test]
draw quad
probe all rgba (-2147483648.0, -2147483648.0, -2147483648.0, -2147483648.0)