Vulkan-Intel Miscompilation on a minus division with integers
AaronGhost opened this issue · 1 comments
AaronGhost commented
Description
The following code containing an affectation does not return - the right operand.
#version 310 es
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
layout(std430, binding = 0) buffer buffer_0 {
int ext_1;
int ext_2;
};
void main()
{
ext_2 /= -(1 + 1 / ext_1);
}
Intel-Vulkan output:
buffer_0 2 4
Expected output:
buffer_0 2 -4
Code link
For the related code in the shadertrap test format, see: Vulkan-Mesa/miscompilation/shader09.shadertrap