summaryrefslogtreecommitdiffstats
path: root/tests/glsl
diff options
context:
space:
mode:
authorkaizhangNV <149626564+kaizhangNV@users.noreply.github.com>2024-03-26 11:05:00 -0700
committerGitHub <noreply@github.com>2024-03-26 11:05:00 -0700
commit57f514d09d3b879e238f37980456634e8286691c (patch)
treef80b263d64373d66029a8d168c2df973de339cf7 /tests/glsl
parent5c88619c2b8bf357fb727b4ceb781968adc23408 (diff)
Fix the sign-extending issue in right shift (#3820)
Fix issue (#3637). In constant folding of a right shift operation,slang always uses signed interger as the operand no matter the input source code is signed or unsigned, this could causes sign-extending issue if the input source is unsigned integer with highest bit set to 1. Fix the issue by checking the original type of the input and use the unsigned type if the input is unsigned.
Diffstat (limited to 'tests/glsl')
0 files changed, 0 insertions, 0 deletions