Add simd_bswap, simd_bitreverse, simd_ctlz, and simd_cttz intrinsics by calebzul...
source link: https://github.com/rust-lang/rust/pull/114156
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Add simd_bswap, simd_bitreverse, simd_ctlz, and simd_cttz intrinsics #114156
Conversation
Collaborator
(rustbot has picked a reviewer for you, use r? to override) |
added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
labels
This comment has been minimized.
This comment has been minimized.
Contributor
well |
Member
Author
Is that LLVM 14 specific? I'm pretty sure the bump to 15 is imminent. |
Member
Author
Ah, actually, the problem is that it's encoding the last argument as |
Contributor
I don't thiiink so? |
Contributor
#114148 8 hours ago ;-) |
Contributor
@Urgau I mean that I don't think the issue is LLVM 14 specific, I could be wrong. |
Contributor
Oh, yeah sorry. As for the issue here, I would just note that |
Member
cg_clif and cg_gcc will need these intrinsics too. |
Member
Author
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? |
Member
Mostly making a note. I can implement it on the cg_clif side myself. I don't know what @antoyo prefers for cg_gcc. |
Contributor
I'm also taking note for cg_gcc and I'll implement it myself. |
Member
Author
It looks like this worked! |
added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
labels
Member
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. |
Contributor
Test successful - checks-actions |
Collaborator
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)Results 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%) |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Successfully merging this pull request may close these issues.
None yet
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK