-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Add simd_bswap, simd_bitreverse, simd_ctlz, and simd_cttz intrinsics #114156
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
well |
Is that LLVM 14 specific? I'm pretty sure the bump to 15 is imminent. |
Ah, actually, the problem is that it's encoding the last argument as |
I don't thiiink so? |
#114148 8 hours ago ;-) |
@Urgau I mean that I don't think the issue is LLVM 14 specific, I could be wrong. |
Oh, yeah sorry. As for the issue here, I would just note that |
cg_clif and cg_gcc will need these intrinsics too. |
It compiles on newer LLVM so at some point it became flexible enough to accept i8.
@bjorn3 do you expect that to be part of this PR, or just making a note of it? |
Mostly making a note. I can implement it on the cg_clif side myself. I don't know what @antoyo prefers for cg_gcc. |
I'm also taking note for cg_gcc and I'll implement it myself. |
It looks like this worked! |
@bors r+ |
Any chance someone could make a PR to also implement these in Miri? :) Let me know if you need any pointers for getting started. The existing SIMD intrinsics are probably a good template. |
☀️ Test successful - checks-actions |
Finished benchmarking commit (03a5725): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 652.746s -> 651.287s (-0.22%) |
…er-errors Fix simd_bswap for i8/u8 rust-lang#114156 missed this test case☹️ cc `@workingjubilee`
…-errors Fix simd_bswap for i8/u8 rust-lang#114156 missed this test case☹️ cc `@workingjubilee`
cc @workingjubilee