-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
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
Some things are UB, because they are UB in regular D, C and C++ too. #56
Comments
The spec classify UB as illegal, say it in the DDoc. |
intel-intrinsics allows some instruction to shift by more than size in bits, because it has actually no runtime cost in inline optimized code. Not sure how evil that is. |
The question (with regards to shifting) is that D says it's UB, but the x86 instruction is well defined. |
Also same question with _mm_alignr_pi8 / _mm_alignr_epi8 with larger counts. If we make this UB, might be better for arm vs x86. |
Need to see if the shift instruction agree between arm and x86, making it UB would be more correct in arm perhaps |
=> document them
The text was updated successfully, but these errors were encountered: