-
Notifications
You must be signed in to change notification settings - Fork 8
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
[NEON] Shift left requires constant integer #95
Comments
The most straightforward way (yet, probably not very efficient) would be to fallback to
Another approach would be to change the interface and pass the shift value as an integral constant. |
FYI: This also hold for |
This should be fixed with #97. |
Thank you for pointing out the issue!
I would thus not include the workaround and rather rely on the vdup for now until we come up with something better. |
That may be true fur C++ as a language, but specifically in NEON, this is well-defined and documented:
|
When downloading the current tar.gz from v0.1.9-rc5 (and probably ones before that but I didn't check), I cannot compile the NEON stuff on Mac with LLVM/Clang 18. I get the following error multiple times.
which is the expanded macro for:
When looking at the NEON specs, this error is correct, as
vshlq_n_u8
requires aconst int
as the second argument. I'm not sure how this should be handled, but probably this needs avdup_n_*
for the runtime value before the shift.The text was updated successfully, but these errors were encountered: