-
Notifications
You must be signed in to change notification settings - Fork 301
Use SIMD intrinsics for vector shifts #1955
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
base: master
Are you sure you want to change the base?
Conversation
|
r? @folkertdev rustbot has assigned @folkertdev. Use |
|
|
|
Ah, so I need to add a |
|
It looks like adding that one edit: https://godbolt.org/z/99zrnb5Gj edit2: somehow using |
|
https://godbolt.org/z/cafKWsf6x I think these should do the job, @eduardosm could you check please? edit: seems to pass miri on overflow playground |
67db9b3 to
a299d29
Compare
That looks good to me 👍🏻 |
a299d29 to
102f03d
Compare
Retrying #1928, this time actually checking for overflow. LLVM sees through this, and eliminates the branch/selects https://godbolt.org/z/WsYvfjPas
cc @RalfJung this also removes uses of a few intrinsics from avx2