We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When accumulating the bits, this:
IntValue = (IntValue << Idx) | Val;
Should probably be:
IntValue = (IntValue << 8 * Idx) | Val;
The text was updated successfully, but these errors were encountered:
This example shows the problem, and more:
kernel void foo(global uchar4* A) { *A = (uchar4)(7,8,9,10); }
Generates code like:
%uint_7 = OpConstant %uint 7 %uint_8 = OpConstant %uint 8 %uint_9 = OpConstant %uint 9 %uint_10 = OpConstant %uint 10 %17 = OpConstantComposite %uint %uint_7 %uint_8 %uint_9 %uint_10 ... %24 = OpFunction %void None %8 %25 = OpLabel %26 = OpAccessChain %_ptr_StorageBuffer_uint %23 %uint_0_0 %uint_0_0 OpStore %26 %17
That OpConstantComposite is just wrong.
Sorry, something went wrong.
Fix generation of <4 x i8> constants
49351ac
Cover both when all components are int constants, or when some are undef values. Fixes google#36
dneto0
No branches or pull requests
When accumulating the bits, this:
Should probably be:
The text was updated successfully, but these errors were encountered: